abstract interface

Does it make any sense if i declare an interface as abstract. If yes, What is the difference between ordinary interface and thise one. Please in detail.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

as far as I remember 'abstract interface' keyword remains from Java 1.0 and does not have any special meaning any more (Java 1.1+). use 'interface' instead.

(you may want to check the Java Language Specification yourself :)
From Section titled 'abstract Interfaces'

Every interface is implicitly abstract. This modifier is obsolete and should not be used in new Java programs.

>>>Please in detail.
That is all there is to say ,nothing more to it.

interface itself is a abstract class. NO need to explicitly tell as abstract.
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

>>>interface itself is a abstract class.
interface is a skeleton and class is a body,
and a abstract class is mostly a body with little skeleton,i.e it can have real code and some abstract method(s).

>>>NO need to explicitly tell as abstract.
There was a valid way of specifying it and it's obsolete now.

Sometimes there is a need to specifically stress a thing ,even though ALL methods and constant data in a interface is public to the package by default and you are only interested in using that interface in package foobar.

An interface declaration cna be preceded by interface modifiers:
which can be one of 'public' & 'abstract'
What was that again Ravi??

An interface is an abstract class??

Then pray please tell me as to why we "extend" an abstract class and "implement" an interface??

Java introduces interfaces to recover much of the functionality that multiple inheritance gives you.

I typed abstract class mistakenly. My meaning is

interface itself is abstract.

no implementation.

abstract in the sense not abstract tag in java. It is just a general concept.


Now my comment is

interface itself is a abstract // Here Abstact int the sense generally dictionary meaning. left undefined.

.. NO need to explicitly tell as abstract.

Now this abstract is abstract keyword in java.

Sorry. I did n't clearly explined the my message.

Hi AMit and Rainmal:-
 Am i correct now??

 Mistankley class came in typing chagned the whole meaning of my comment

yes it happens sometimes to all of us at sometime in our life.
However in the HttpServletRequest class, it is a abstract interface class,

why it has its own object and its method?

That is

request.getParameter("xxx");  where request is the object of HttpServletRequest.

In this case, the getParameter is a abstract interface class should not have implementation.  Why it still can call this function?

Moreover, abstract class cannot be instantiated, why HttpServletRequest has its own object, called request?

Pls tell me, I am very puzzling about abstract interface.

request is instance of some class that implements the HTTPRequest interface.

System.out.println("class: " + request.getClass().getName())

to see tha class name.
A feature in the javadoc application makes that all the interfaces are displayed as if they were abstract. For instance, in the javadoc page for interface HttpServletRequest it is written

public abstract interface HttpServletRequest ...

while its source says

public interface HttpServletRequest

This leads to the confussion expressed in this question.

Of course, the answer is that it does not make any sense.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.