Java Autoboxing: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Java =TODO= * https://docs.oracle.com/javase/tutorial/java/data/autoboxing.html")
 
No edit summary
Line 2: Line 2:


* [[Java#Subjects|Java]]
* [[Java#Subjects|Java]]
=Overview=
Java has a mechanism called ''boxing'' that converts primitive types (such as <tt>int</tt>) into their corresponding reference types (<tt>java.lang.Integer</tt>). The opposite operation, converting reference types into their corresponding primitive types is called ''unboxing''.
''Autoboxing'' is a mechanism that performs boxing and unboxing automatically.


=TODO=
=TODO=


* https://docs.oracle.com/javase/tutorial/java/data/autoboxing.html
* https://docs.oracle.com/javase/tutorial/java/data/autoboxing.html

Revision as of 20:38, 23 March 2018

Internal

Overview

Java has a mechanism called boxing that converts primitive types (such as int) into their corresponding reference types (java.lang.Integer). The opposite operation, converting reference types into their corresponding primitive types is called unboxing.

Autoboxing is a mechanism that performs boxing and unboxing automatically.

TODO