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

What is the purpose of stub and skeleton?

1027


What is a module function?

1089


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1067


What are instance variables?

1075


Explain about static nested classes in java?

1060


What is the difference between the paint() and repaint() methods?

1060


Is java a compiler?

974


Can we have 2 main methods in java class?

1017


Is singleton class immutable?

961


In java how do we copy objects?

1044


What is meant by stack and queue?

1063


Should you use singleton pattern?

934


List some important features of java 10 release?

1069


What is thread count in java?

1003


What is meant by collection in java?

1058