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

why do we use interface in java?

Answer Posted / navinice

We use Interfaces in java because JAVA Doesn't support
multiple inheritance. Thats why no any class can extend more
than one class in JAVA.. But through Interfaces we can
implement more than one interfaces and use there methods in
base class.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is byte code and why is it important to java’s use for internet programming?

1051


Describe method overriding

1066


What is map java?

922


How is tree Mirroring implemented?

1003


What are data structures in java?

918


What is diamond operator in java?

900


What is multi-catch block in java?

1023


what is bmg file and how to create that files?what will it contailn?

2299


What’s the difference between callable and runnable?

1026


Can we overload final method in java?

933


Why Java doesn’t support multiple inheritance?

990


Can we override constructors?

942


Explain what are final variable in java?

1023


Give any two differences between C++ and java.

1086


Explain about method local inner classes or local inner classes in java?

965