Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Thanks A.jyotsna,
Can u tell me differnce between abstract class and interface

vikash

Answer Posted / jyotsna gupta

Abstract Class | Interfaces
|
1. Starts with a class keyword | Starts with interface
| keyword
2. abstract modifier has to be | No need to provide abstract
provided | modifier (100 % Abstract)
3. Not necessary to contain | All methods are by default
abstract methods, but if a | public and abstract, and
class has abstract method | all attributes are public
then class has 2 be abstract| static, and final (FIELDS)

4. Used for group of related | Any class can implement
classes only | interfaces

5. Single inheritance is | Multiple inheritance can
allowed only | be achieved

6. All class behaviours are | Cannot have constructors,
allowed, except creating | should initialise its
objects of abstract classes | Fields

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a dynamic array in java?

1090


Can you call a method in a method?

1008


Why inputstreamreader is used in java?

957


what is mutual exclusion? : Java thread

963


Can keyword be used as identifier?

895


Does treeset allow null in java?

906


How do you check if a number is a perfect square?

934


What java is used for?

1024


Can a class extends itself in java?

967


What is the use of default method in interface in java?

962


Why wait and notify methods are declared in object class?

971


What is thread count in java?

950


Can we access the non-final local variable, inside the local inner class?

962


Explain about automatic type conversion in java?

1002


Can we sort a map in java?

972