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

Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

980


What is parsing a sentence?

997


What is singleton class in ruby?

966


What is mean by encoding?

1020


What is the difference between serializable and externalizable interfaces?

1025


how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)

2282


How do you read a char in java?

947


What is java used for on a computer?

925


What is boolean logic?

968


Can extern variables be initialized?

893


What is a finally block?

925


What is an immutable object?

1035


When to use runnable interface vs thread class in java?

930


How to sort numbers in java without array?

925


Can list have duplicates in java?

855