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

Can a set contain duplicates?

1002


Why is stringbuffer faster than string?

963


What are java threads?

1172


Explain the selection sort algorithm?

1116


In a container there are 5 components. I want to display the all the components names, how will you do that one?

1081


What is high level language in computer?

1067


Explain the scope or life time of class variables or static variables?

1038


Why synchronization is important?

1071


Tell us something about an iterator.

1008


What is the access scope of a protected method?

1077


What is an immutable object? How do you create one in java?

1105


Why are global variables used?

1072


What is string pool?

1213


How to optimize the javac output?

1089


how to create multithreaded program? Explain different ways of using thread? : Java thread

1053