Java - Wrapper Classes
Which of the following methods converts a
String to a primitive int in Java?String to a primitive int in Java?parseInt converts a string directly to a primitive int.valueOf returns an Integer object, not a primitive. toString converts int to string. intValue() is called on an Integer object to get primitive int.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions