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 state is a thread in when it is executing?

1030


What is the difference between reader/writer and inputstream/output stream?

1135


What are the differences between abstract class and interface?

1160


What are the states of thread in java?

1034


What is meant by method?

1184


Why main method is static in java?

1231


What are "class access modifiers" in Java?

1208


What do you mean by compiler?

1098


Explain java coding standards for classes or java coding conventions for classes?

1181


Why synchronization is important?

1074


How is abstraction implemented in java ?

1094


Is math class static in java?

1157


Can we use static class instead of singleton?

1101


What is argument in java?

1058


Can an interface be final?

1080