nullpointertexception example in java
Example 1: nullpointerexception java
Integer num;
num = new Integer(10);
Example 2: NullPointerException
TestObject a = new TestObject();String b = a.getTestResult();b.toString();
Integer num;
num = new Integer(10);
TestObject a = new TestObject();String b = a.getTestResult();b.toString();