SyntaxFix
Write A Post
Hire A Developer
Questions
As mentioned already primitives can not be set to the Object type null.
What I do in such cases is just to use -1 or Long.MIN_VALUE.
-1
Long.MIN_VALUE