Given:
and the code fragment:Which statement is true?
Given:
and the code fragment:Which statement is true?
The program throws OutofStockException.
D is correct Exception in thread "main" com.examtopics.OutOfStockException: Raised
D is correct. // Exception in thread "main" q45.OutofStockException: Raised.