Back to Browse

Learn WRAPPER CLASSES in 10 minutes! 🎁

25.8K views
Dec 6, 2024
10:36

#java #javatutorial #javacourse 00:00:00 introduction 00:02:34 autoboxing 00:03:30 unboxing 00:04:41 toString 00:06:30 parsing 00:08:38 misc methods 00:10:06 conclusion public class Main { public static void main(String[] args) { // Wrapper classes = Allow primitive values (int, char, double, boolean) // to be used as objects. "Wrap them in an object" // Generally, don't wrap primitives unless you need an object. // Allows use of Collections Framework and static utility methods. // Autoboxing Integer a = 123; Double b = 3.14; Character c = '$'; Boolean d = true; // Unboxing int x = a; } }

Download

1 formats

Video Formats

360pmp410.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Learn WRAPPER CLASSES in 10 minutes! 🎁 | NatokHD