Home / Report Question

Q. Which of the following statements is legal in Java? (i) mysRef = (Mystery) mySecret; (ii) mysRef = (Mystery) secRef;
  • A. Only (i)
  • B. Only (ii)
  • C. Both (i) and (ii)
  • D. None of these

Correct Answer: B