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

How variables are stored in memory?

952


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

960


What is java abstraction with example?

978


What is string manipulation?

947


Where are register variables stored?

966


How does a for loop work java?

984


What exactly is java?

886


What is singleton service?

907


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

1099


What is stack example?

955


What are the types of literals?

1084


How do you find the independent variable?

981


What is stored procedure. How do you create stored procedure ?

1889


What is defined as false sharing in the context of multithreading?

981


Does the order of public and static declaration matter in main method?

1028