Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1.  
  2. public class Main {
  3.  
  4.  
  5.  
  6. public static void main(String[] args) {
  7. try {
  8. initZakaz();
  9. } catch (MyException e) {
  10. System.out.println(e.getMessage());
  11. }
  12. finally {
  13. System.out.println(" finally");
  14. }
  15.  
  16.  
  17. }
  18.  
  19. public static void initZakaz() throws MyException{
  20.  
  21. throw new MyException("To much more");
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement