Friday, 11 May 2012

First post. A little coffee...

Declaring a variable as an "Integer" as opposed to an "int", gives the programmer the ability to set that value to "null".
class is_this_null {
    public static void main (String[] args) { 
        Integer i = null;
        if (i == null)
            System.out.print ("This is null");
    }
}