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...

Difference between Abstract Class & Interface?

Answer Posted / rakesh.fanu

Abstract Class :-
Abstract class should be declare with abstract.
Abstract Class must be extended by its sub class.
Abstract Class has abstract method and also method with
body also.
Abstract Class has not instance variables , it contain only
Constant.
An abstract class cannot be instantiated

Interface :-
Interface must be Implemented by another class.
Interface has only abstract method.
Interface has not instance variables , it contain only Constant.
An Interface cannot be instantiated

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the difference between code-based security and role-based security? Which one is better? : java security

980


What is meant by code profiling?

1060


Explain suspend() method under thread class>

1095


What is cdi in java?

932


What is xml file in java?

974


What is transactional in java?

1092


How can one prove that the array is not null but empty?

985


When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in java?

991


What is persistence xml in java?

933


How can c# app request minimum permissions? : java security

873


Can I use openjdk for commercial?

1020


Is it better to learn java or python?

993


i have client interview in TCS.client is CITI BANK.how to face it,what type of questions they will ask,please tell send me to kumar525job@gmail.com

14110


Why doesn’t the main method throw an error with no arguments?

976


Which framework is best for rest api java?

1027