This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread 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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "abstract interface" Watch "abstract interface" New topic

abstract interface

Wong Martin

Joined: Jan 14, 2011
Posts: 25

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

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.
Have you checked out Aspose?
subject: abstract interface
It's not a secret anymore!