This is a question from Marcus's Tiger mock exam
What will happen when you attempt to compile and run the following code?
--------------------------------------------------------------------
Select 1 option
1) Compile time error, an abstract class cannot have non abstract methods.
2) Compile time error, the equals method of the
String class takes a String parameter not a StringBuffer
3) Compile time error, class Ilea does not implement the getLeader method of Lcc
4) Compilation and output of "equals"
5) Compilation, but no output at runtime
------------------------------------------------------------------------
The answer is 5th option(Compilation, but no output at runtime).
I compiled the same and found that the answer is correct.
Can anyone please explain this answer?
Thanks in advance
Sajeena.
[ August 03, 2005: Message edited by: Sajeena Binoj ]
[ August 03, 2005: Message edited by: Barry Gaunt ]