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

Answer Posted / rajesh

An abstract class can be implemented in same packakge while
an interface can be implemented in many package.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If goto and const is reserve words than why it is not work in java?

1756


Which access specifier can be used with class ?

716


Why wait and notify methods are declared in object class?

793


What is the benefit of lambda expressions?

723


What are recursive functions?

797


What is java jit compilers?

754


What is replacefirst in java?

779


Does java allow default arguments?

776


Is stringwriter thread safe?

731


How big is a 32 bit integer?

758


Is string serializable in java?

746


How do you know if a value is nan?

798


Does java linked list allow duplicates?

735


How many types of java are there?

748


How does arraylist work in java?

769