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

Write a java program to print fibonacci series?

949


How to sort array in descending order in java?

919


What are the different types of sorting in java?

974


Can variables be used in java without initialization?

1075


What are basic keywords?

1037


What is namespace in java?

998


Explain an algorithm to find depth of a binary tree.

1035


Why we do exception handling in java and how many types of exceptions are there?

1114


make a method which any number and any type of argument and print sum of that arguments.....

1808


Why we cannot override static method?

1055


When should the method invokelater() be used?

1015


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

1181


v-model life cycle

2037


What is a static method in java?

1045


What is file in java?

1026