what are the diffrences between interface and abstract
class?
Answer Posted / cool
=>Abstract class means
1)We can have concreate methods and abstrat methods
2) We can give implementation for concreate methods.
Interfaces means
1)we could not have concreate methods.All the methods are
abstract methods implicitly.
2)And those methods allows only public access specifier
only.It wont
allow any final,static keywords with methods .
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What kind of variables a class can consist of?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
What are the steps involved to write rmi based programs?
Explain about varargs in java?
What is abstract class constructor called?
What is a java string?
What is the difference between path and classpath variables?
Why runnable interface is used in java?
What do you understand by final value?
what is the volatile modifier for? : Java thread
what is encapsulation in java? Explain
Explain an algorithm to find depth of a binary tree.
What is nan inf?
Difference between association, composition and aggregation?
What is anagram word?