| |||||||||||||||||
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.
Learn more problems on : Assertions
Discuss about this problem : Discuss in Forum
http://www.indiabix.com/online-test/java-programming-test/61 |
Saturday, October 31, 2015
Output of program
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment