Error: null pointer exception
If the properties and methods of the object are called with null, an error will be reported, and the error message is:
Exception in thread"main" java.long.Null Pointer Exception: Cannot read field “name"because”〈loca15〉"is null at impact.
Example:


