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
Explain the difference between abstraction and encapsulation.
I don’t want my class to be inherited by any other class. What should I do?
Can we have static methods in an interface?
Explain when noclassdeffounderror will be raised ?
Why are arrays useful in java?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
Why wait and notify methods are declared in object class?
How do you sort in java?
How are java objects passed to a method and what are native methods?
What are strings in physics?
What is method overloading in java ?
How can you traverse a linked list in java?
Can we create our own wrapper class in java?
What is functional interface in java?
Why method overriding is used?