Q. Which method is used to convert a primitive to its wrapper class?
Solution:
The valueOf() method (e.g., Integer.valueOf()) converts a primitive to a wrapper object.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
The valueOf() method (e.g., Integer.valueOf()) converts a primitive to a wrapper object.
Strengthen Your Practice with our comprehensive question bank.