Java - Wrapper Classes
Which of the following is the correct syntax to autobox an
int value 5 into an Integer object?int value 5 into an Integer object?Integer num = 5; uses autoboxing (compiler inserts valueOf). A uses explicit constructor (deprecated), C uses explicit factory method.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions