tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code07:13

Java wrapper classes 🎁

Bro Code ↗

From the creator

Java wrapper classes tutorial explained #Java #wrapper #classes public class Main { public static void main(String[] args) { // wrapper class = Provides a way to use primitive data types as reference data types // Reference data types contain useful methods. // Can be used with collections (ex.ArrayList) //primitive //wrapper //--------- //------- // boolean Boolean // char Character // int Integer // double Double // autoboxing = the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper classes // unboxing = the reverse of autoboxing. Automatic conversion of wrapper class to primitive Boolean a = true; Character b = '@'; Integer c = 123; Double d = 3.14; } }

Published 2020-10-19 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code