Java wrapper classes 🎁

Published: 19 October 2020
on channel: Bro Code
133,825
5.9k

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;

}

}


On this page of the site you can watch the video online Java wrapper classes 🎁 with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 19 October 2020, share the link with friends and acquaintances, this video has already been watched 133,825 times on youtube and it was liked by 5.9 thousand viewers. Enjoy your viewing!