java.lang. nullpo9inter code example Example: nullpointerexception java Integer num; num = new Integer(10);