Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


33. try {
34. // some code here
35. } catch (NullPointerException e1) {
36. System.out.print(”a”);
37. } catch (RuntimeException e2) {
38. System.out.print(”b”);
39. } finally {
40. System.out.print(”c”);
41. }
What is the result if a NullPointerException occurs on line
34?
1 c
2 a
3 ab
4 ac

Answer Posted / kumar

Once the first catch block executed then rest of the block
skipped.The control transfer to the finally block
the answer is "ac"

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we execute a program without main?

1076


What are void pointers?

1366


Which is better 64 bit or 32 bit?

983


What are the access modifiers available in java?

1180


Does hashset allow duplicates in java?

1178


How do you classify Dialog Box?

1176


How do you identify independent and dependent variables?

1069


How to change the priority of thread or how to set the priority of thread?

1090


Can an object subclass another object?

1174


What is the basic concept of java?

1067


How can we avoid including a header more than once?

1073


Can we use string in the switch case?

1094


Which keyword specify that a variable is effectively final ?

1046


What is thread pool? How can we create thread pool in java?

1134


What is OOP's Terms with explanation?

1239