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 / james n saikay

Three

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many times finalize method will be invoked? Who invokes finalize() method in java?

1020


Give any two differences between C++ and java.

1147


What is preflight request?

1018


What are register variables what are the advantages?

903


Is java call by reference?

974


What is hashset in java?

1137


What is the difference between yield() and sleep()?

1015


How can you avoid serialization in child class if the base class is implementing the serializable interface?

1083


How to perform bubble sort in java?

995


What is default switch case? Give example.

1007


How do you call a reference in java?

985


What exactly is a .class file?

1046


I want to print “hello” even before main is executed. How will you acheive that?

1086


What are the basics of core java?

1019


What do you understand by java virtual machine?

1196