Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- try {
- initZakaz();
- } catch (MyException e) {
- System.out.println(e.getMessage());
- }
- finally {
- System.out.println(" finally");
- }
- }
- public static void initZakaz() throws MyException{
- throw new MyException("To much more");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement