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

I have a class which is abstract which contains only the
abstract methods. This is similar to an interface. Then, if
i have given a choice to choose one of them. Which one i
have to choose and why?

Answer Posted / madhav

Interface is preferable to Abstract class as when ever in
instance is created for subclasses of this,constructors
will be called hirarchially consuming some time for each
constructor call..

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a dot notation?

957


Is a char always 1 byte?

930


Which category the java thread do fall in?

943


Why does java doesnt suuport unsigned values?

2173


How many bytes is a string java?

963


Explain the private protected method modifier?

910


Explain with example the concept of constant variable in java.

1098


What are 3 boolean operators?

940


Can you sort a string in java?

855


What happens if constructor is private?

971


What are the 4 types of research methods?

872


How to reverse a string in java?

997


How many digits is int32?

928


How can we create an immutable class in java?

1017


Can you achieve runtime polymorphism by data members?

1073