SyntaxFix
Write A Post
Hire A Developer
Questions
Primitive data types cannot be null. Only Object data types can be null.
null
Object
int, long, etc... can't be null.
int
long
If you use Long (wrapper class for long) then you can check for null's:
Long
Long longValue = null; if(longValue == null)