This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes  Abstract classes and Interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark " Abstract classes and Interfaces" Watch " Abstract classes and Interfaces" New topic
Author

Abstract classes and Interfaces

Rashmi Dupati
Greenhorn

Joined: Mar 05, 2007
Posts: 22
Hello

Can you please answer my questions:

1.What is the difference between Abstact classes and Interfaces.in program how we are going to decide which one to create?and when to use interfaces and when to use absract classes?(In programmatically)

2.can we declare variables in interface?

thanks & regards
Rashmi
Thomas Thevis
Ranch Hand

Joined: Sep 02, 2008
Posts: 87
Hello Rashmi,

please use the forum's search function. This question has been posted several times in the last weeks. Please read these posts first. If you still have questions afterwards, come back and post them.

Best Regards,
Thomas


SCJP 5.0, SCJD in progress
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38075
    
  22
Have a look at this FAQ; if there is anything you don't understand come back.

But a search of this forum will find several very similar old threads.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Abstract classes and Interfaces
 
Similar Threads
will it possible to definefianl abstarct class and interfaces?
Very very Very important to Understand this Inner class
interfaces Vs abstract classes
Doubt
why interfaces are light weight when working on spring fram work