+ 10
What is Auto Boxing and Auto Unboxing ?
3 odpowiedzi
+ 5
Autoboxing is the automatic conversion that the Javacompiler makes between the primitive types and their corresponding object wrapper classes. For example, converting an int to an Integer, a double to a Double, and so on. If the conversion goes the other way, this is called unboxing.
+ 4
autoboxing is the conversion of primitive datatype to wrapper class object. auto-unboxing is the conversion of wrapper class object to primitive datatype.
0
FYI: there ain't anything like auto-unboxing it's unboxing because you have to unbox explicitly