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

Write a code to show a static variable?

1087


What does isempty () do in java?

1055


What is the difference between the font and fontmetrics classes in java programming?

1137


Why is java so popular?

1103


What is a numeric string?

1016


What is the purpose of checked and unchecked exceptions in JAVA?

1005


What is the purpose of abstract class?

1013


What is Java Reflection API? Why it’s so important to have?

1154


What are autoboxing and unboxing? When does it occur?

946


Which types of exceptions are caught at compile time?

1030


What is boolean flag in java?

1093


Why is stringbuffer faster than string?

915


In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

1048


What causes memory leak in java?

931


Can constructor be synchronized?

933