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
How we can execute any code even before main method?
Can we force the garbage collection to run?
When will we use them?
Is it necessary for the port addresses to be unique? Explain with reason.
What are the types of web technologies?
List some important characteristics on jre
Can I use % with real numbers?
Which is easier netbeans or eclipse?
Write a factorial program using recursion in java?
How to split arraylist elements in java?
Why doesn't the java library use a randomized version of quicksort?
What is user defined exception in Java?
Difference between current previous versions of Java?
What is the use of static methods?
What are the different types of java?