This question is from Skillguru.I tried compiling it and got no output, but the answer is apparently a.I don't understand!
a.runtime exception due to failure at Line 2.
b.Compilation error at Line 1,assert can't take an String object
c.Compilation fails at Line 2, the second expression of assert can't be boolean
d.line 1,2 show a compilation error,as an assert statement can't returns something.
e.The program compiles fine but no output.
Also,can someone please tell me if the second expression of assert can be boolean?!
Joined: Oct 12, 2012
umm..sorry!..i tried compiling it again using -ea..(had totally forgotten that earlier!..:P)...and now i'am getting NoClassDefFoundError!..what do i do?