difference between interface and abstract classin real time project

difference between interface and abstract classin real time project
[8 byte] By [manikantamedaa] at [2007-10-3 4:57:30]
# 1
has been answered a million times in these very forums. Please do a search and then ask a specific question or any reservation about the responses that you might have.
kilyasa at 2007-7-14 23:02:48 > top of Java-index,Core,Core APIs...
# 2
I also know the difference between interface and abstract class .but i want to know which is used for real time projects and why
manikantamedaa at 2007-7-14 23:02:48 > top of Java-index,Core,Core APIs...
# 3
What reason do you have for thinking there is a preference in the real-time world?
ejpa at 2007-7-14 23:02:48 > top of Java-index,Core,Core APIs...
# 4
yes iam waiting for preferences only how?Thanks in advance
manikantamedaa at 2007-7-14 23:02:48 > top of Java-index,Core,Core APIs...
# 5
They are both used.
ejpa at 2007-7-14 23:02:48 > top of Java-index,Core,Core APIs...
# 6

> yes iam waiting for preferences only how?

There is no preference for any of them. It depends on the way the problem is modelled. One might decide to have abstract classes, another might want interfaces, some way just get going without any of them.

In real-time or virtual time, the considerations should remain the same as mentioned in:

http://www.javaworld.com/javaworld/javaqa/2001-04/03-qa-0420-abstract.html

http://www.javaworld.com/javaworld/javaqa/2001-08/03-qa-0831-interface.html

aniseeda at 2007-7-14 23:02:48 > top of Java-index,Core,Core APIs...