Java - Wrapper Classes
Which of the following is the correct syntax to convert an
int variable num to an Integer object?int variable num to an Integer object?valueOf converts primitive int to Integer object.parseInt returns primitive int, not Integer object. intValue() is a method of Integer, not int. toString returns String, not Integer.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions