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
Can we have multiple public classes in a java source file?
What is the importance of static variable?
What is a pattern what is an anti pattern?
What’s the difference between applets and standalone program?
Can an interface have a constructor?
How objects of a class are created if no constructor is defined in the class?
What is the tradeoff between using an unordered array versus an ordered array?
Which is faster call by value or call by reference?
What are locale settings?
What is a singleton class? Give a practical example of its usage.
What do you mean by global variable?
What is meant by method overriding?
How do you replace all in word?
Which collection allows duplicate values in java?
What is a boolean used for?