What happens when you call a method on a reference object with a null value?
A. Compilation error
B. Runtime error (NullPointerException)
C. The method is executed normally
D. The reference becomes initialized with a default value

Q&A Education