Advertisement



< Prev
Next >



Autoboxing and Unboxing





In this tutorial, we are going to understand the concept of autoboxing and unboxing, but before that, we will explain when and what lead to the advent of these important features.

Prior to Java 5, the only way to convert a specific primitive value to an object of its matching wrapper class, was to call the constructor of a matching wrapper class object with this primitive value, and this process was called boxing. Let us see how it was done.




Please Subscribe

Please subscribe to our social media channels for daily updates.


Decodejava Facebook Page  DecodeJava Twitter Page Decodejava Google+ Page




Advertisement



Notifications



Please check our latest addition

C#, PYTHON and DJANGO


Advertisement