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...

11. static class A {
12. void process() throws Exception { throw new Exception();
}
13. }
14. static class B extends A {
15. void process() { System.out.println(”B”); }
16. }
17. public static void main(String[] args) {
18. new B().process();
19. }
What is the result?
1 B
2 The code runs with no output.
3 Compilation fails because of an error in
line 12.
4 Compilation fails because of an error in
line 15.

Answer Posted / neil

B

Is This Answer Correct ?    15 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are JVM.JRE, J2EE, JNI?

1083


Differentiate between overriding and overloading cases?

1079


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

2158


What are benefits of java?

1034


What is keyword and identifier?

1115


What does math floor () do?

952


What are the important features of Java 11 release?

1093


Difference between error and exception

6008


What is better - 'bit-shift a value' or 'multiply by 2'?

1171


Explain about narrowing conversion in java?

987


Difference between abstract and concrete class ?

1148


How do you remove duplicates in java?

996


What is used of static keyword in java?

1049


State differences between C and Java?

1185


Can list be final in java?

904