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

Why do we need strings in java?

983


What is static keyword in java?

1001


Explain the features of interfaces in java?

978


Can You Have Virtual Functions In Java?

1144


What are the different types of multitasking?

1101


How do you use compareto?

945


What is difference between synchronize and concurrent collection in java?

1064


Is string an object?

1114


how we can create packages in java?

954


What are the advantages of unicode?

1008


Can we create our own wrapper class in java?

966


Explain an algorithm to find depth of a binary tree.

1039


Is array primitive data type in java?

995


How many times finalize method will be invoked? Who invokes finalize() method in java?

1016


What are autoboxing and unboxing? When does it occur?

947