Open desaikd opened 4 months ago
If you use Boolean instead of boolean, then this could be initialized to null. Similarly for int/Integer and double/Double. However, if it's not an optional field, then we're better off using the primitive types to avoid the overhead of the boxed types.
If you use Boolean instead of boolean, then this could be initialized to null. Similarly for int/Integer and double/Double.
Boolean
boolean
null
int
Integer
double
Double
However, if it's not an optional field, then we're better off using the primitive types to avoid the overhead of the boxed types.