What is the difference between Abstract Class and Interface
Answer Posted / e.bhavani
1) all abstract methods of the abstract class should be
implemented in its sub classes
all the (abstract) methods of the interface should be
implemted in its implementation classes
2) abstract class can contain instancevariables also
interace can not contation instance varibles. it contations
only constants.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is the meaning of 3 dots in java?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
What is the exact difference in between unicast and multicast object? Where we will use?
How do you join strings in java?
Define packages in java?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
Explain the use of javap tool.
How do you add spaces in java?
Why are functions called methods in java?
What do you know about java?
What does percent mean in java?
What are the advantages of assembly language?
How many bits is a 64 bit byte?
What are parameters in a method?
What is hash code collision?