Question 18
Consider the following Java code.
Choose the correct option when the class is executed as: java -ea ShoppingTest
This code generates output: 2600.0
This code generates AssertionError: Item price must be positive
This code generates AssertionError: Adding item exceeds cart limit
This code generates AssertionError: Maximum limit must be positive