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 do we use interface in java?

Answer Posted / sandeep sagala

Interface is used to get an 100% abstract class. By using
this class we cant create an object for this class. In this
there will be all the unimplemented methods only. No method
is implemented in this type of classes. The methods present
inside this interfaces are all static and public by default.
The attributes present inside this interfaces are public,
final and static by default.

Is This Answer Correct ?    4 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you compute size of a structure?

1161


What are different type of exceptions in java?

963


Can a class be declared as protected?

1002


Is object a data type in java?

1101


What is boolean used for?

1017


What is meant by oops concept in java?

981


What is the function of static in java?

1064


What is the nested interface?

1098


What is the use of arrays tostring () in java?

1035


What are adapter classes?

1041


What are the important methods of java exception class?

1097


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

958


Explain spliterator in java8?

1039


Give me an example of array and linked list? Where they can be used?

993


Is 0 a prime number?

984