Can you explain the difference b/n abtract and interface
with a good example,?In what cases we have use abtract and
what case interface?

Answer Posted / srihari

Interfaces are used to create prototype of classes. Interfaces would be using high-level access specifiers(public).

Abstraction is a mechanism in Java to expose the essential features of the class. Different levels of abstraction is achieved through Access specifiers.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between vector and arraylist.

576


What exactly is methodology?

476


What is a singleton class in Java?

501


What is an image buffer?

531


How many bits is a string?

521






Explain the importance of finalize() method.

560


What is the purpose of stub and skeleton?

540


What does this () mean in java?

541


How to Sort Strings which are given in List and display in ascending order without using java api.

3756


What happens if we override private method?

521


What is anti pattern in java?

512


define polymorphism in java

628


What is lastindexof in java?

544


What is the exception hierarchy in java?

481


What is formatted output in java?

495