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

Is array size fixed in java?

759


What is a parameter in matrices?

783


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

876


What is the purpose of static methods and variables?

790


How do you escape a string?

747


What is a parameter in a function?

770


Should you use singleton pattern?

735


What is the java project architecture?

2022


What are java packages?

825


What is singletonlist in java?

732


How dead lock situation occurs in java and how you can identify it?

764


What is the advantage of OOP in java?

905


What are static blocks and static initalizers in java ?

803


What is passing value java?

742


Is set sorted in java?

721