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 use interface? if interface declear a method implement
in class. why direct implement method in class



why use interface? if interface declear a method implement in class. why direct implement method in..

Answer / fajruddin sk

interface mainly use as of my knowledge-----> (1) for loosely coupling(2)just declare a rule(3)for giving a special behavior(Marker interface) (4)for multiple inheritance

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How to sort elements in a parallel array in java?

0 Answers  


Can we execute java program without main method?

0 Answers  


How do you sort a string in java?

0 Answers  


Which number is denoted by leading zero in java?

0 Answers  


Can variables be used in java without initialization?

0 Answers  


How many types of string data types are there?

0 Answers  


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

0 Answers  


Where to store local variables?

0 Answers   Aspiring Minds,


what is difference between abstract and interface? can i give real time example for the two topics?

7 Answers  


what is the major difference between linkedlist and arraylist in java?

0 Answers   IBS,


what is mean by synchronization?

3 Answers   BOB Technologies, GCPL,


What is thread?

7 Answers   BMC, Virtusa,


Categories