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

Explain a few methods of overloading best practices in java?

987


How many types of literals are there in JAVA?

1045


What is listnode in java?

991


What's the purpose of using break in each case of switch statement?

983


What is the method to declare member of a class static?

1009


What is wrapper class example?

997


What things should be kept in mind while creating your own exceptions in java?

1162


How can we create a synchronized collection from given collection?

1085


Can an interface extend a class?

990


What is a prefix function.write down a code to compute prefix function.

1057


What is the loop in java?

1149


Is arraylist sorted in java?

1002


Can vector have duplicates in java?

951


Explain thread life cycle in java?

1037


Which keyword specify that a variable is effectively final ?

992