Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.Practice;
- public class EH_TestCases {
- public static void main(String[] args) {
- System.out.println(ml());
- }
- private static int ml() {
- try {
- System.out.println("In Try");
- System.out.println(10/0);
- } catch (NullPointerException npe) {
- System.out.println("In catch");
- } finally {
- System.out.println("In finally");
- return 30;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement