answersLogoWhite

0

Conversion of primitive data types automatically to their corresponding wrapper classes is called AutoBoxing and the reverse of this operation is called UnBoxing.

Ex:

Long L = new Long(100);

long x = L;

Now x will have a value 100.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Is it better to watch unboxing videos or unbox yourself?

You unboxing it because you would be jealous watching other unboxing videos rather than unboxing the product yourself.


What is autoboxing in java?

With the advent of Java 2.0 (yay!!!), now when a method expects an Object as its parameter can be passed a primitive data type (i.e. int, double, char) and automatically "box" it into its corresponding Wrapper Object (i.e. Integer, Double, Character), thus primitives could be passed as an Object parameter. It also works the other way, "auto-unboxing" you can directly modify primitives Wrapper Objects with primitive operations(i.e. +, -, /, %) For example: Integer myInt = new Integer( 10 ); // creates an Integer holding 100 int yourInt = myInt * 10; // yourInt is now a primative holding 100 myInt = myInt * 10; // myInt also holds 100


What is the new version of java?

The latest version of java is called Java 5 or Tiger.


What is new version of Java?

The latest version of java is called Java 5 or Tiger.


What is difference between java 2 and java 5?

They are different versions. Java 5 is newer than Java 2. Think of it like the difference between the Playstation 1 and the Playstation 3.


What games on whirled get you the most coins?

Unboxing I believe.


Where the boxing and unboxing used?

just look on you tube


Can you delete java 5 if you hava java6 on your computer?

You can remove Java 5 if you have Java 6 and Java 5 programs should still work on your machine. However, unless you are really strapped for hard drive space, which is unlikely given the size of hard drives nowadays, there's really no reason to remove Java 5.


What is jdk5?

jdk5 is the Java Development Kit for Java SE 5. It includes the standard java installation, plus what you need to compile and make your own java programs, most namely javac.exe. It does, however, not include an IDE. as of writing this, java 5 is outdated and should java 7.


What actors and actresses appeared in Tim Cook iPad Unboxing Video - 2012?

The cast of Tim Cook iPad Unboxing Video - 2012 includes: Mike Hanford as Tim Cook


What are the advantages of java 6 over java 5?

Java 6 has some major improvements over Java 5. Apart from the addition of additional coding libraries, it is compatible with more websites and still supported by Oracle, unlike the older version.


How do you increase a variable by 5 in Java?

variable_name=variable_name+5;