Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Core Java - Interview Questions and Answers for 'Autoboxing' - 3 question(s) found - Order By Newest | ||||
| ||||
Ans. Generics , Enums , Autoboxing , Annotations and Static Import. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   java5   generics   enum   autoboxing   annotations   static import   rare | ||||
Try 1 Question(s) Test | ||||
Related Questions | ||||
Which annotations are used in Hibernate ? | ||||
What is the use of @GeneratedValue annotation in Hibernate? | ||||
Give an Example of Annotations ? | ||||
What are few of the Annotations pre defined by Java? | ||||
What are meta Annotations ? | ||||
Name few meta-annotations ? | ||||
How to create a Junit to make sure that the tested method throws an exception ? | ||||
Explain Annotations ? | ||||
What entries we make in the hibernate config file if we are not using hbm files but Annotations ? | ||||
| ||||
Ans. If we don't declare the list to be of specific type, it treats it as list of objects. int 1 is auto boxed to Integer and "1" is String and hence both are objects. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   collections   arraylist   list   autoboxing   wrapper classes expert   rare | ||||
Related Questions | ||||
What are concepts introduced with Java 5 ? | ||||
Explain Autoboxing ? | ||||
| ||||
Ans. Autoboxing is the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper classes | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   java5   autoboxing   wrapper classes Asked in 2 Companies basic   frequent | ||||
Related Questions | ||||
What are concepts introduced with Java 5 ? | ||||
Will this code give error if i try to add two heterogeneous elements in the arraylist. ? and Why ? | ||||