Advertisement
Strade351

Pr5

Aug 30th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. /**
  2. * Created by Anatoliy on 31.08.2016.
  3. * Task 4.2
  4. */
  5. public class Pr5 {
  6. public static void main(String[] args) {
  7.  
  8. }
  9.  
  10. public void Cat() throws MyException {
  11. throw new MyException();
  12. }
  13.  
  14. public class MyException extends Exception {
  15. MyException() {
  16. System.out.println("Error");
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement