Autoboxing
-
Boxing, unboxing, and autoboxingStaticPL/JAVA 2019. 9. 27. 11:20
1. Overview Let's clarify what boxing, unboxing, and autoboxing are and Why it needs and how to work. 2. Description 2.1 Definition Name Definition Invoking cases Autoboxing Converting a primitive value into an object of the corresponding wrapper class Passed as a parameter to a method that expects an object of the corresponding wrapper class Assigned to a variable of the corresponding wrapper c..