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 math in java?

1023


What is complexity in java?

965


What is string in java? String is a data type?

958


What do you understand by abstract classes?

1019


What do you mean by platform independence?

990


What is break and continue statement?

1029


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

1030


What does a boolean method return?

1153


Can a class be final?

900


What is singleton class example?

972


Can an integer be a string?

985


When object is created and destroyed?

1040


What is the method to declare member of a class static?

964


How many bits is a 64 bit byte?

1002


What is the purpose of the enableevents() method?

989