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


Please Help Members By Posting Answers For Below Questions

Explain the difference between abstraction and encapsulation.

742


I don’t want my class to be inherited by any other class. What should I do?

801


Can we have static methods in an interface?

794


Explain when noclassdeffounderror will be raised ?

821


Why are arrays useful in java?

782


Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

2069


Why wait and notify methods are declared in object class?

802


How do you sort in java?

783


How are java objects passed to a method and what are native methods?

832


What are strings in physics?

773


What is method overloading in java ?

761


How can you traverse a linked list in java?

902


Can we create our own wrapper class in java?

750


What is functional interface in java?

774


Why method overriding is used?

775