jQuery in Action, 3rd edition
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
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: abstract interface
It's not a secret anymore!