Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference Between Interface and AbstractInteface

 
GayathriSwamiMahadevan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like know the difference between the inteface and abstractinteface. The AbsractInterface follws the same set of rules which the inteface follows and ofcourse as far as my knoeledge goes there is not difference betn the two terms. then what can be the reason behing using the abstract keyowrd preceeds the interface keyword. Can anyone clear my doubt. pls
thanx
Gayathri
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AbstractInterface??? I have not heard of it. I know all methods in an nterface are abstract by default. Using the abstract keyword in their declaration should not create any problems though.
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GayathriSwamiMahadevan
Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please re-register under an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!
 
Junilu Lacar
Bartender
Posts: 7480
50
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JLS 9.1.1.1 abstract Interfaces
Every interface is implicitly abstract. This modifier is obsolete and should not be used in new programs
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic