Analyze the following code: public abstract class Test implements Runnable{ public void doSomething() { }; }

Question:
Analyze the following code: public abstract class Test implements Runnable{ public void doSomething() { }; }

1.The program will not compile because it does not contain abstract methods.

2.The program will not compile because it does not implement the run() method.

3.The program compiles fine.

4.None of the above

Posted Date:-2021-10-25 05:37:20


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!