This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I know what abstract classes and what interfaces are. But, whey would we need to declare an interface as 'abstract'? For ex: (FilterChain interface of javax.servlet.http). I do not see any necessity of declaring an interface as an abstract. Am I missing something? Can some one please shed some light? -Bala
Jacky Chow
Ranch Hand
Joined: Sep 01, 2002
Posts: 63
posted
0
hi, interfaces are implicitly abstract, that means use or not use the abstract key word with interface are the same.
Jacky
Bala Krishna
Ranch Hand
Joined: Jan 26, 2001
Posts: 95
posted
0
Exactly my point. Why use the word 'abstract' when it's not needed? It's like saying JSP page.
Wilfried LAURENT
Ranch Hand
Joined: Jul 13, 2001
Posts: 269
posted
0
That's what the JLS says in 9.1.2.1 abstract Interfaces "Every interface is implicitly abstract. This modifier is obsolete and should not be used in new Java programs. " W.
Bala Krishna
Ranch Hand
Joined: Jan 26, 2001
Posts: 95
posted
0
Thanks for clarifying that Wilfried. So, what does this mean? That the people who wrote the lattest Servlet API would did NOT read the JLS? And I thought I was the only one who tried to learn Java without reading the JLS. hehe!