Question: Suppose that p is a reference variable that contains the null reference. What happens at runtime if the program tries to activate a method of

Suppose that p is a reference variable that contains the null reference. What happens at runtime if the program tries to activate a method of p? String p; p. sub String (0, 6); Null Pointer Exception Illegal Argument Exception Illegal Static Exception The results are unpredictable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
