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

Is there any difference between nested classes and inner classes?

1099


Difference between Preemptive scheduling vs. Time slicing?

1022


What are the application of stack?

923


What is binary tree in java?

1062


What is the difference between preparedstatement and statement in java?

1170


How does predicate work in java?

994


Difference between arraylist and vector.

1131


What is the super void?

902


Is object a data type in java?

1122


What is array initialization in java?

1102


What does the three dot emoji mean?

1124


Can list be null in java?

1042


What is the purpose of the strictfp keyword?

1164


How many unicode characters are there?

1067


Where can I find jdk in my computer?

966