difference between Abstract and Interface?

Answer Posted / kumar rk

interface
---------
in java interfaces are fully unimplemented structures.
here all methods are public and abstract by default(added by compiler)

abstract class
--------------
abstract classes are partially implemented structure.
means it can have abstract method or may be not.
but in every case object cannot be created.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What class is the top of the awt event hierarchy?

821


What are the steps to write p-to-p model application?

2169


Write a singleton program?

783


Difference between loadclass and class.forname?

803


What is the purpose of the notify() method?

818


whats is statement and procedure

1813


Can you give me a simple example of using the requiredif validator rule?

858


To identify IDL language what mapping mechanism is used?

3644


What is in-memory replication?

764


Name the class that is used to bind the server object with RMI Registry?

1908


what is Activation Instantinator?

2126


What is prototype?

817


How substring() method of string class create memory leaks?

773


Is the ternary operator written x : y ? Z or x ? Y : z ?

853


Is there a guarantee of uniqueness for entity beans?

750