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 variables?

1034


Is null or empty java?

1035


Why string is immutable or final in java

1140


What is the purpose of abstract class?

1059


What is variable in java?

1046


What is finalize()? Is finalize() similar to a destructor?

1003


What is java object name?

1049


What is tree in java?

990


what is meant wrapper classes?

1297


What are the important features of Java 11 release?

1161


How does hashset work in java?

1180


What is the purpose of a transient variable?

1117


What is difference between ++ I and I ++ in java?

1030


how to write a program for sending mails between client and server

2118


What exactly is methodology?

983