Join
Blogs
Questions
Videos
Tags
Members
Search
 
 
Create your own blog, earn points and get popular!

Will the following code compile?

  1. <strong>Will the following code compile?</strong>
  2.  
  3. interface Int{
  4.  abstract public void parentMethod() throws Exception;
  5. }
a. True
b. False
No votes yet
Share this
sudhanshu_841's picture

Yes.. the code will compile

Yes.. the code will compile fine without any error. (We can't execute it though, as there isn't any class that implements this interface)

Post new comment

5 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.