Question OOP-POLY-0057
MediumA Java method is overloaded as print(Object o) and print(String s). Which is called by print(null)?
- A.
print(Object o)
- B.
Neither
- C.
Compilation error always
- D.
print(String s), the more specific one
Sign up free to see the answer and a step-by-step explanation.