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 and Interfaces?

Answer Posted / hema

Abstract Class is the Class where it can have Methods with
both Definition and Declaration.

Method Declaration: public void Display();
Method Definition: public void Add(){ ..code goes on here...}

When all the methods in a class are only Declared then it is
Interface.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

931


Where local and global variables are stored?

1039


Define a package.

1007


What is the tradeoff between using an unordered array versus an ordered array?

1160


How do you allocate memory to object?

924


Is a case study a method or methodology?

844


Is ++ operator thread-safe in java?

1099


What is covariant return type?

1054


Discuss about garbage collector in Java.

1028


What restrictions are placed on method overloading in java programming?

993


How do you sort a set in java?

853


What is the benefit of abstract class?

888


Explain the access modifiers for a class, method and variables?

1090


How do I know if java is installed?

1012


What do you mean by garbage collection used in java?

1005