Initialization of nullable types in Java
Forums:
Integer number = 42;
Integer nullInt = null;
Double pi = 3.14;
Character charA = 'A';
Boolean hasValue = true;
Boolean noValue = null;
- Log in to post comments
Integer number = 42;
Integer nullInt = null;
Double pi = 3.14;
Character charA = 'A';
Boolean hasValue = true;
Boolean noValue = null;