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 association?

929


Can we call the run() method instead of start()?

986


What is the final blank variable?

1073


What is ordered map in java?

952


What do you mean by append?

983


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

1002


Why is multithreading important?

891


What are the elements of java?

969


What do you understand by a Static Variable?

1142


What is the maximum size of byte array in java?

957


How do you implement tree mirroring in java?

1017


v-model life cycle

1994


What are parameters in a method?

1041


What is generic class?

1039


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

929