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

Given:
11. public static void main(String[] args) {
12. Integer i = uew Integer(1) + new Integer(2);
13. switch(i) {
14. case 3: System.out.println(”three”); break;
15. default: System.out.println(”other”); break;
16. }
17. }
‘What is the result?
1 three
2 other
3 An exception is thrown at runtime.
4 Compilation fails because of an error on
line 12.

Answer Posted / harish

Compilation fails because of an error on

Is This Answer Correct ?    5 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is an empty arraylist null?

1090


What is an escape character in java?

1036


Explain the pointers in Java?

1050


Explain runtime exceptions?

1175


Is it possible to specify multiple jndi names when deploying an ejb?

994


Why do we need autoboxing in java?

992


Can an interface extend another interface?

1053


What does main method?

977


What are the two ways of implementing multi-threading in java?

1503


How to convert string to char and vice versa?

1002


Difference between static synchronization vs. Instance synchronization?

1115


What is difference between core java and java ee?

895


Can you access the private method from outside the class?

965


What is the difference between call by reference and call by pointer?

957


What is the symbol for average?

1028