what is the difference between abstract class and
Interface?where we can use it in realtime projects?

Answer Posted / rashmi kalra

1. Abstract classes may have concrete methods while
interfaces have no methods implemented.

2. Interfaces do not come in inheriting chain while
abstract class come in inheritance.

Is This Answer Correct ?    20 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the point of java?

561


What is off heap memory?

554


What is a nested structure?

543


What is the different types of functions?

565


What is the do while loop syntax?

559






What is the static block?

589


What is data type modifier?

534


What is serialization in java?

570


Can we modify the throws clause of the superclass method while overriding it in the subclass?

553


Can we declare a class as static?

598


Can we use catch statement for checked exceptions?

527


What is nested class?

575


What is meant by method?

583


What is definition and declaration?

530


What is the declaration statement?

521