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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is multi-catch block in java?

1039


What is a return in java?

996


What is jit compiler ?

955


What are the differences between string, stringbuffer and stringbuilder?

985


What is the differences between c++ and java? Explain

1016


What is thread safe java?

881


What are the Static and Dynamic Variables? Differentiate them.

1069


Why for each loop is used?

977


What are the limitations of procedural programming approach?

1018


Can you add null to a list java?

1017


Where are global variables stored?

909


Is multiple inheritance supported by java?

935


What is method overriding in java ?

1142


What is the difference between throw and throws in java?

1052


Explain creating threads by extending thread class ?

1022