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


what is main purpose of interface?

Answers were Sorted based on User's Feedback



what is main purpose of interface?..

Answer / saikatk

There is no multiple inheritance in java,we can't extends
more than one class at a time,so interface is a way to
implement multiple inheritance in java, and from design
point view when we have some class specific behaviours we
can put interface as a base of the classes.

Is This Answer Correct ?    44 Yes 4 No

what is main purpose of interface?..

Answer / javachi

The purpose of interface is to create the relationship between the parties involved. parties is nothing but a set of classes relates with each other. this is required when the sub class inherits the property of two or more superclasses(multiple inheritance)

Is This Answer Correct ?    7 Yes 8 No

Post New Answer

More Core Java Interview Questions

What is the difference between the synchronized() & static synchronized()?

2 Answers   HP, SparkTG,


What are the application of stack?

0 Answers  


What are the differences between string and stringbuffer?

0 Answers  


What is a ?

0 Answers  


Write an algorithm for quick sort?

0 Answers   Virtusa,


What are the advantages of exception handling?

0 Answers  


What is a function argument in java?

0 Answers  


Differentiate between class and structure.

0 Answers   Amdocs, Motorola,


Can you run java program without main method?

0 Answers  


What is an i/o filter?

5 Answers  


Are arrays passed by reference in java?

0 Answers  


When should a function throw an exception?

0 Answers   Thomson Reuters, Virtusa,


Categories