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 / balamurugan

Three is answer.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main uses of java?

979


What are the advantages of defining packages in java?

972


Why spring singleton is not thread safe?

987


What is method reference in java?

1110


What is parseint?

996


Is main a keyword in java?

942


Can array grow dynamically in java?

956


How do I get the | symbol on my keyboard?

1067


Is hashset sorted in java?

1164


What is multithreading and its advantages?

1059


Difference between string s= new string (); and string s = "abv";?

1193


What are adapter classes?

1027


What is the purpose of garbage collection in java, and when is it used?

1021


What is the purpose of checked and unchecked exceptions in JAVA?

993


what is predefined function in java?

964