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

When should I use abstract classes and when should I use
interfaces?

Answer Posted / ankit

if u r required more than 1 class in ur prog then use
interface because u cant extends 2 class in ur prog ...to
use 2 class in ur prog u can implement 1 interface and
extends 1 class

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is __ init __ functions?

1212


What about abstract classes in java?

1119


What is java virtual machine and how it is considered in context of java’s platform independent feature?

1232


Differentiate between nested and inner class in java.

1056


what is the difference between process and thread? : Java thread

1031


What do you mean by default constructor in java?

1129


What is t type java?

1112


How would you dynamically allocate memory to an array?

1083


How do you test a method for an exception using junit?

1278


Explain the difference between the public, private, final, protected, and default modifiers?

1108


What do you understand by casting in java language?

1085


What are the advantages of java inner classes?

1125


What is the destroy method?

1109


Is array a class in java?

1041


What is difference between iterator access and index access?

1119