Home » Interview » Technology

What is autoboxing and unboxing ?

Correct Answer: 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

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion