File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes difference between interface and abstract Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "difference between interface and abstract " Watch "difference between interface and abstract " New topic

difference between interface and abstract

anita dhar
Ranch Hand

Joined: May 24, 2007
Posts: 34
Hi, i am wondering when we have to use abstract and when inetrface
what is interface and abstract when we can go for interface and when we go for abstract class .
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15081

Please do a search; this question has been asked many times before, so you'll quickly find an answer if you search.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Anita, you keep posting questions in I/O and Streams regardless of whether the question has anything to do with I/O and Streams. Please take a look at our list of forums and try to select an appropriate forum for each different question you have. I will move this particular question to Java in General (beginner).

"I'm not back." - Bill Harding, Twister
I agree. Here's the link:
subject: difference between interface and abstract
It's not a secret anymore!