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 is method overloading in JAVA? Why is it not present in C ?

1106


What is byte data type?

1006


What do you mean by stream pipelining in java 8?

1233


If try block is successfully executed, Then Is Finally block executed?

1088


Can we overload destructor in java?

1001


Which sorting algorithm is in place?

979


Describe the term diamond problem.

1041


What is class and object in java?

1012


Why isn’t there operator overloading?

1096


Can we override static methods in java?

1076


how to write a program for sending mails between client and server

2080


Which java ide is used the most?

1017


What is local class in java?

1094


What is a parameter example?

984


What is remote method invocation (rmi)?

1072