This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes abstract interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "abstract interface" Watch "abstract interface" New topic
Author

abstract interface

Wong Martin
Greenhorn

Joined: Jan 14, 2011
Posts: 25
Hi,

Today I read a set of code in the Internet and have a question:

What's the difference between abstract interface and interface? Thank you.
Soumyajit Hazra
Ranch Hand

Joined: Jun 26, 2007
Posts: 136
An interface is abstract by definition. So abstract interface and interface both are same.


Java Programmer | SCJP 1.5 | SCWCD 1.4
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

All the interface methods are implicitly public abstract. And all the interfaces are implicitly public abstract. So both are same.


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Wong Martin
Greenhorn

Joined: Jan 14, 2011
Posts: 25
I see. Thanks a lot!
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

the keyword abstract before the interface is redundant.
 
wood burning stoves
 
subject: abstract interface