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

When we give defination of interface method in the class why
method must be public???

Answer Posted / pradeep singh

because class which implements the interfaces if the
access modifiers are protected or private then we can not
override this metods. somethos must be publicand java there
is notmultiple inheritance

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many functional interfaces does java 8 have?

975


how can you take care of mutual exclusion using java threads? : Java thread

991


How do you create a reference in java?

917


What is the java idl system?

988


Define iterator and methods in iterator?

914


What is the use of keywords in java?

935


Describe what a thread-local variable is in java?

960


What does it mean that a method or field is “static”?

921


why would you use a synchronized block vs. Synchronized method? : Java thread

900


What is <> used for in java?

1069


What is the function of static in java?

1008


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

1190


What does int argc char * argv [] mean?

931


difference between byte stream class and character stream class?

4484


What is singleton pattern?

1039