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 we r go to abstract class and when we go to Interface?
i have confusion this question while in interview plz clarify

Answer Posted / atul

multiple inheritence is not possible so we use interface
instead of it.when we declare interface then inside declare
all methods is by default abstract, data member is by
default final & static .final means there is must
Initialization at declare time otherwise inside first
constructor call.
thats it...

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is arraylist ordered?

999


How do you compare characters in java?

919


What are the 6 functions?

905


why Java does not support multiple inheritances?

1113


What are the common uses of "this" keyword in java ?

955


What is abstract class? Explain

971


How do you write a good declaration?

904


What does exp mean in math?

934


Java.util.regex consists of which classes?

937


How to convert string to char and vice versa?

955


What is the internal implementation of set in java?

880


Explain the difference between transient and volatile in java?

951


What is fail fast in java?

1054


Can java object be locked down for exclusive use by a given thread?

947


How do generics work in java?

941