Java - Wrapper Classes
What happens when you assign an
int value directly to an Integer variable in Java?int value directly to an Integer variable in Java?int to their wrapper classes like Integer.int to Integerint to an Integer, Java wraps the primitive into an object automatically.int is automatically converted to an Integer object using autoboxing. -> Option D15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions