| 1. | What will be the output of the program? public class Test |
|||||||
Answer: Option D Explanation: The foo() method returns void. It is a perfectly acceptable method, but because it returns void it cannot be used in an assert statement, so line 18 will not compile. |
