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
Which one will take more memory: an int or integer?
How do I find and replace in word?
What is the difference between length and length() method in java?
What is the difference between iterator and list iterator?
What is the file extension for java?
Explain about version control?
What is scope & storage allocation of static, local and register variables? Explain with an example.
What is a nonetype?
When should we create our own custom exception classes?
What is the difference between the file and randomaccessfile classes?
What is a layout manager and what are different types of layout managers available in java awt?
Why multiple inheritance is not supported by java?
What is the significance of java packages?
Why main method is called first in java?
Tell us something about different types of casting?