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 intern method in java?

1040


What is a map? What are the implementations of map?

1052


What is get () in java?

986


Can a constructor call another constructor?

936


What is the difference between variable declaration and variable initialization?

990


Why java uses the concept of the string literal?

1016


What do you mean by chromounits in java8?

903


How do you implement tree mirroring in java?

1026


why java does not support unsigned keyword?

5146


What is an object in java?

985


How many characters is 16 bytes?

949


How do you read a char in java?

959


What is collections framework?

1108


Why is the type for real numbers called double?

917


What is object in java?

928