what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / nanda
diff b/w abstract class and interface
1.Abstract class contain both normal fn as well as Abstract
fn wheras Interface can define only abstract fn.
2.by default declared variable in interface is static and
final.
in realtime projects we use inerfaces in AWT OR SWING,where
we implement the inerfaces and use them
| Is This Answer Correct ? | 30 Yes | 12 No |
Post New Answer View All Answers
What are generic methods?
What is the difference between overriding & overloading?
Similarity and difference between static block and static method ?
What is object cloning in Java?
What are the different access modifiers available in java?
What is the static variable?
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
List any five features of java?
What does sprintf return?
Explain the difference between runnable and callable interface in java?
Is string a data type in java?
What are the methods used to implement for the key object in the hash map?
Can we extend singleton class in java?
How do you test a method for an exception using junit?
Is java written in c?