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...

If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?

Answer Posted / ashok kumar

Methods in the abstract class can be accessed only through
a class hierarchy i.e through inheritance.

But methods in the interface can be accessed anywhere i.e
across the class hierarchy.(without inheritance).

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is string thread safe in java?

1136


what is server side caching?

2234


How is abstraction implemented in java ?

1083


Is an array a vector?

1118


What is instanceof keyword?

1262


When should I use a singleton?

1097


How do you sort in ascending order in java?

914


What is annotation in java?

1105


What is overriding in java?

1117


Which method returns the length of a string?

1091


What is finally and finalize in java?

1154


Why put method is idempotent?

966


How do you delete a list in java?

1019


What is the use of parseint in java?

1080


How does remove work in java?

1022