It's not that if a class implements an interface and does not provide it's method/s implementation you can get away with the class if you do not instatiate the class. For exaple if you remove these line
You still would not be able to compile the code because you need to either mark the class as explicitly abstract or provide an implementation for the interface method/s.
A class would not automatically become abstract if you do not provide the implementation for the interface method/s. Hence I would say all possible answers are infact wrong. [ May 17, 2007: Message edited by: Anupam Sinha ]
madhu v pe
Joined: Apr 21, 2007
you are right. probably answer 3 is also not exactly correct with the wording. what me and krishnan agreed before. the correct reason will be 1.since Runt is implementing Runnable it should provide the implementation of its methods which is run() 2 otherwise Runt should be declared as abstract.