[WEBINAR] Bulletproof: How Today's Business Leaders Stay on Top


Definition - What does Autoboxing mean?

Autoboxing is a term for newer coding conventions, primarily in Java, that can help match the primitive types and wrapper classes of various kinds of variables. Autoboxing essentially allows for referencing the value of a primitive type through type conversion and passing it on to a more sophisticated reference.

Techopedia explains Autoboxing

One prime example of the way that autoboxing works is in using the integer in code. The primitive type reference "int" contrasts with the object-based reference "Integer." In older versions of Java, it was not possible to get a new value through referencing primitive types in certain ways, such as calculation of the sum of two of these variables. Autoboxing allows this kind of value identification by taking values from the primitive types, which are then "autoboxed" into a wrapper class. "Unboxing" refers to the reverse process.

Autoboxing is available on newer Java versions, and can save time and effort by making the conversion process automatic. Programmers can use it in various ways, with integers, floats and other simple data types, to provide more diverse results in code.
Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.