What is the diff. b/w Interfaces & Abstract class?

Answer Posted / lakshman

abstract class contains constructor,but interface does not.
abstract class supports all access specifier,but interface
supports only public
programmer is responsible to provide the subclass to
abstract class but interface left the implementation for the
third party vendors.
abstract class contains both abstract methods and concrete
methods but interface contains only abstract methods

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of exceptions?

595


Is it possible to compare various strings with the help of == operator? What are the risks involved?

620


Explain creating threads by implementing runnable class?

591


What is callablestatement? How you can call stored procedure to pass in parameter?

545


what is bmg file and how to create that files?what will it contailn?

1888






What is the difference between instanceof and isinstance?

568


Does java allow default arguments?

592


What is use of inner class in java?

516


what is ststic with example

1597


What are measurable parameters?

569


What are the differences between the constructors and methods?

579


Which is better stringbuilder or stringbuffer?

529


What is the relationship between clipping and repainting under awt?

616


What are recursive functions?

575


What is scope & storage allocation of static, local and register variables? Explain with an example.

568