Answer:
Explanation:
NullPointerException is a RuntimeException. En Java, this happens when an application try to use a reference but this is null, this is used just to create an object, because an object references cannot exist without a value, so we assign the null value to it, but no object is created and the compiler does not detect it.
For example
Object obj = null;
obj.toString(); // This statement will throw a NullPointerException