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;
}
}
Nesta página do site você pode assistir ao vídeo on-line Java wrapper classes 🎁 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Bro Code 19 Outubro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 133,825 vezes e gostou 5.9 mil espectadores. Boa visualização!