In real time project when will we use Abstract class. and
what are the difference between abstract and interface.
Answer Posted / avinash
In Real time,we use Abstract class when we want the
implemented functionality to be used . In Abstract class ,
there may contain Abstract methods or non abstract
methods(concrete methods).
When we dont want the functionality provided by the abstract
class then we are going to make use of Interface. we
directly implement the interface and provide functionalities
for the abstract methods.
Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What are the call back methods in entity bean?
How many times may an objects finalize() method be invoked by the garbage collector?
What is Stream Tokenizer?
Describe responsibilities of Activator?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What is a class loader? What are the different class loaders used by jvm?
Is the infobus client side only?
whats is mean by tiles in struts
What is the purpose of the notify() method?
What is RMI and what are the services in RMI?
Is a class a subclass of itself?
What modifiers may be used with an interface declaration?
what is a portable component?
What is an abstract method?
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..