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 is the latest version of java?

589


What are the 4 types of characters?

547


What are the difference between string, string builder, and string buffer in java?

558


Can I declare class as static or private?

547


What is a container in a gui?

552






What is character in data type?

553


What package is math in java?

539


What are streams in java 8?

552


Can we increase array size dynamically in java?

517


What is a static method in java?

543


What is the difference between double and float variables in java?

638


What are the advantages of arraylist over arrays?

574


Is arraylist ordered in java?

580


What are the disadvantages of object oriented programming?

603


What is the purpose of an interface?

562