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

Why do we create threads in java?

1260


Where are local variables stored?

973


What is the difference between static method and instance method in Java?

1222


How to create an interface?

1091


what do you mean by classloader in java?

1033


What are java packages? What is the significance of packages?

1018


What are the skills required for core java?

1021


What is callablestatement? How you can call stored procedure to pass in parameter?

1025


How do you initialize an arraylist in java?

1050


Can we overload run() method in java?

1212


What is connection class in java?

965


Can you declare an interface method static?

1068


What is a values collection view ?

1099


What happens if an exception is throws from an object's destructor?

1051


How do you format in java?

1017