Bookmark Topic Watch Topic
  • New Topic

interface  RSS feed

 
Arun Prasath
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Report post to moderator
what is the access modifier for top level interface?
 
Srinivas Kalvala
Ranch Hand
Posts: 257
Firefox Browser Hibernate Linux
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello,

Think interface as pure abstract class with all attributes as public static final and all methods as abstract methods.

One can declare the interface as abstract too.

So the top level modifiers are, public and default.
 
Jay Suttiruttana
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Report post to moderator
Arun, you posted the same question twice in one day???

http://www.coderanch.com/t/404654/java/java/interface
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
"Arun Prasath AV", you have previously been warned on multiple occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional, and this is your final warning. Adjust your display name to comply with the required standards prior to your next post.

To comply, all you need to do is drop the "AV" suffix from your display name.

Failure to comply will result in the removal of your account.

bear
JavaRanch Sheriff
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!