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

Can we sort a map in java?

1058


What is generic type?

1041


Can we use catch statement for checked exceptions?

978


Java is pass by value or pass by reference? Explain

999


What is the difference between path and classpath variables?

1069


Why are variables important in research?

953


Is hashset ordered java?

1101


How to store image in arraylist in java?

987


What is the finalize method do?

1113


Does string isempty check for null?

1047


Variable of the boolean type is automatically initialized as?

1022


What about interrupt() method of thread class ?

1088


What is the use of put method?

960


Can each java object keep track of all the threads that want to exclusively access it?

961


What is the use of using enum to declare a constant?

1039