Computer Science, asked by sisjvgxuqdi9xisdjdnn, 5 months ago

Differentiate between auto-boxing and auto-unboxing in java​

Answers

Answered by brezzeinsmile
5

Answer:

answer

Explanation:

Autoboxing is the automatic conversion that the Java compiler 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.

mark me as the brainliest pls

Answered by singhjaspal8456
5

Answer:

Wrapper classes in java provides a mechanism to convert primitive into object and object into primitive. Whereas automatic boxing and unboxing allows you to do that conversion automatically. Autoboxing and auto unboxing are legal in java since Java 5.

Explanation:

hope it will help you....

Similar questions