When we r go to abstract class and when we go to Interface?
i have confusion this question while in interview plz clarify

Answer Posted / atul

multiple inheritence is not possible so we use interface
instead of it.when we declare interface then inside declare
all methods is by default abstract, data member is by
default final & static .final means there is must
Initialization at declare time otherwise inside first
constructor call.
thats it...

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you include a string in java?

522


What is string in java is it a data type?

532


What language is java written?

535


What is the driver class?

565


What is a class instance variable?

614






What are the elements of java?

560


How objects of a class are created if no constructor is defined in the class?

578


Why java is platform independent? Explain.

597


What is the range of a character variable?

541


What is replaceall in java?

541


What is a class object?

498


What are static blocks and static initalizers in java ?

582


What is purpose of applet programming?

634


What is the difference between an interface and an abstract class?

536


What is proper subset?

535