Q. Which of the following statements is legal in Java?(i) mysRef = (Mystery) mySecret; (ii) mysRef = (Mystery) secRef; (Solved)
1. Only (i)
2. Only (ii)
3. Both (i) and (ii)
4. None of these
- b. Only (ii)
1. Only (i)
2. Only (ii)
3. Both (i) and (ii)
4. None of these