Java Autoboxing and Unboxing - What is Java Autoboxing and Unboxing

preview_player
Показать описание
In this lesson, you learn about Autoboxing of primitive values to Wrapper classes and Unboxing of Wrapper class objects to primitive values.

According to the Java docs: Autoboxing is the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper classes.

A common Autoboxing and Unboxing operation occur when we try assigning a primitive int value to a variable of the Integer wrapper class. The primitive int value is automatically autoboxed into an Integer object.

Connect With Lemubit Academy 🔍:
Рекомендации по теме
Комментарии
Автор

Thanks for the video. Very simple and helpful

justinbanza
Автор

Very simple and easy to understand explanation, thanks a lot!

triplehsidekick