Wednesday, November 17, 2010

AutoBoxing in Java

Question : what is Auto-Boxing ?
Answer : Auto-boxing and Auto-Unboxing enables the primitive types to be converted into 
 respective wrapper objects and the other way around.


Question : When this feature Introduced ?
Answer:  In Java 5.0.


Question: Example for Auto-Boxing ?
Answer :  with auto boxing we can write like this,
                    Integer i = 2;
                without auto boxing the same can be done in.
                  Integer i = new Integer(2);

No comments:

AWS certification question

AWS AWS Hi! this is for questions related to AWS questions. EC2 instances EC2 storage types cold HDD : 1. Defines performance in terms...