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

State the main difference between c++ and java?

594


Explain the difference between collection api and stream api in java8?

511


Explain about the select method with an example?

591


Why is core java important?

576


what is collatration?

2745






how to prepare for IT Officers Interview in Banks

1505


What is default size of arraylist in java?

559


How do you define a singleton class?

509


Explain about java sdk?

583


What are the restrictions imposed on method overriding?

556


Can we split string with in java?

534


How do you create a reference in java?

512


What is the difference between hashmap and hashtable in java?

557


Can a constructor be private and how are this() and super() method used with constructor?

529


What are the three types of design patterns?

519