Let's suppose that we have these variables:
Integer nbr;
String str;
ApiClass someInstance;
Date date;
I want to state that nbr is empty, str is empty, someInstance is empty, date is empty(not assigned to any value), without using myVar = null;
because oviously this is a bad habit.
is there any way to test if a java variable is not assigned to anything without assigning to each one null
value.