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

What is the range of a character variable?

1001


Have you ever used hashtable and dictionary?

1028


Is string serializable in java?

1027


what happens when a thread cannot acquire a lock on an object? : Java thread

1058


What is the purpose of format function?

1188


How a string is stored in memory?

1041


How do you use substring in java?

1148


What is the latest version of java?

1144


Can we declare a class as abstract without having any abstract method?

1008


What is finally and finalize in java?

1102


Does java have extension methods?

993


What is the purpose of void?

1003


Which one of the following suits the description of a string better: derived or primitive?

959


What are the two environment variables that must be set in order to run any java programs?

974


Explain the features of interfaces in java?

988