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 will use an Interface and Abstract class?

Answer Posted / ravikiran

interface is used when we want all the methods implement
the methods differnetly in different situations.

where as an abstract classis used to define abstarct as
well as non abstract methods

Is This Answer Correct ?    15 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of an interface?

1042


Is the milky way in a void?

965


What is meant by 'Class access modifiers'?

1045


What are basic data types?

1094


What is bifunction in java?

1199


What is command line argument in java?

1150


Why we override equals() method?

1034


What about static nested classes in java?

1146


Explain the usage of this with constructors?

1028


Why can't we override private static methods?

970


What are streams?

1123


Write a program to reverse a number in java?

1089


What are variable arguments or varargs?

1006


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

1026


What is use of a abstract variable?

989