QuestionQ73
Exception HandlingGiven:

and this code fragment:

Which statement is correct?
- A The program throws ClassCastException.
- B The program fails to compile.
- C The program throws StockException.
- D The program throws OutofStockException.
Given:

and this code fragment:

Which statement is correct?
Community Discussion