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

How to access a method that it declared as protected?

Answer Posted / ranganathkini

If a method is marked protected, only the subclass of that
class can access it. To make it accessible to other classes,
the subclass of that class can override the protected method
and the override can be marked as public making it
accessible to other classes.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the syntax and characteristics of a lambda expression?

1045


How do you define a method?

977


Explain reverse a linked list recursive java solution?

986


What is parsing in grammar?

1040


What is object cloning in Java?

1108


Explain different ways of creating a thread?

1052


What does file separator do in java?

1015


What is difference between static class and singleton pattern?

1026


Is there a jre for java 11?

1092


How to create com object in Java?

1076


What is treeset in java collection?

968


Name component subclasses that support painting in java programming?

1069


What is a “stateless” protocol ?

990


Is void a type?

978


What is javac used for?

937