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

can u give one sinario when you use Abstract Class and When
you use Interface.

Answer Posted / dhawal

when u want behavior of interface then u can implement that
inteface with any other class and after instantiate that
class u can get behavior of that interfce because by default
methods in interface are abstract,
But in case of abstract class u can not create object of
abstract class means you can not instantiate abstact class
but after extending or by creating base class pointer ,using
dynamic method dispatch u can get behavior of abstract class

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of data structures in java?

990


What is the type of lambda expression?

1025


Write a program to print count of empty strings in java 8?

1006


Why arraylist is not synchronized in java example?

1067


What are the Class Libraries ?

1046


What is a percentage sign called?

1124


Who is founder of java?

999


What happens when you add a double value to a string?

1000


Why do we need array in java?

1020


Can we have any code between try and catch blocks?

990


What is queue in java?

1154


What is numel matlab?

1341


Explain the public class modifier?

956


What is an interoperable application in java ?

1006


How do you end a program?

1118