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 interface and abstract class with ex.

Answer Posted / sreenivas g

Abstract Class : If a class contains atleast one
non-concrete(not implemented) method, it is said to be
Abstract class. it should be defined with keyword abstract.
It is a combination of both implemented and non-implemented
methods.

Interface : By default all the methods in Interface are
abstract methods. All the methods are non-implemented in
interface.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java used for?

983


What is matcher in java?

953


Can we assign integer value to char in java?

980


Can an integer be null java?

954


What is the difference between overriding & overloading?

1024


List some important characteristics on jre

1036


Can you use this() and super() both in a constructor?

948


What is void class in java?

931


How can a gui component handle its own events in java programming?

990


What is the final blank variable?

1090


Why does java does not support multiple inheritance? Explain

939


What is defined as false sharing in the context of multithreading?

1002


Is java map thread safe?

915


What is void keyword?

1056


What is the effect of keeping a constructor private?

893