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

What is function declaration?

532


What are static methods?

576


Why java applets are more useful for intranets as compared to internet?

580


What is a top level class in java?

537


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

618






How to use Media tracker Class.

646


What is space character in java?

574


Explain the difference between an object-oriented programming language and object-based programming language?

549


What is the use of list in java?

524


What is return code?

560


Can an arraylist be empty?

568


Does hashset allow duplicates in java?

580


Which number is denoted by leading zero in java?

811


What is the difference between an argument and a parameter?

539


What is the difference between the file and randomaccessfile classes?

534