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...

What is interface and its use?

Answer Posted / harish

Interface is nothing but an unimplemented class. It
contains the method signatures. The method access
specifier may be abstract. The sub class should implement
all the methods, which are defined in the Interface. If
you don?t implement any method that class should be an
abstract class. Using Interface, It enforces the sub
classes to implement the same. So that, you can create an
instance of any sub class.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you declare an interface method static?

1108


What is the difference between equals() and == in java?

1019


What is a local, member and a class variable?

1092


What is the use of parseint in java?

1088


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

1381


What is callablestatement? How you can call stored procedure to pass in parameter?

1068


What is an example of a constant variable?

1151


Java is pass by value or pass by reference? Explain

1039


Is array serializable java?

1049


how to create multithreaded program? : Java thread

1006


Write a program to reverse a number in java?

1136


How to sort elements in a parallel array in java?

951


What is the r character?

1077


What is bigger kb or mb?

1113


What is this () in java?

1084