What is the access scope of a protected method?

What is the access scope of a protected method?

Hi,

What is the access scope of a protected method?

thanks

View Answers

April 11, 2013 at 1:24 PM

Hi,

In Java program, A protected method can be accessed by the classes within the package or by the subclasses of the class of any package. The Protected method can be overridden by protected or public methods.

This link will help you. http://www.roseindia.net/java/master-java/scope.shtml

Ads









Related Tutorials/Questions & Answers:
What is the access scope of a protected method?
Using Protected Access in JSP
Advertisements
What is the scope for big data?
What do you understand by private, protected and public?
What are weak methods?
In Java, what's the difference between public, default, protected, and private?
What modifiers are allowed for methods in an Interface?
what is class methods in objective c
what is class methods in objective c
Scope
What are the most common methods of Hibernate configuration?
what is the difference between access specifiers and access modifiers in java?
What are the ways to access Hibernate using Spring
private and protected
Access Modifiers
What's the proper way to test a class with private methods using JUnit?
methods
methods
methods
Access level
Can a class be declared as protected?
java protected variables
difference between session scope and request scope
Protected Java Keyword
Session scope
Mean by Bean Scope
ModuleNotFoundError: No module named 'protected'
scope of strategic management
access
Project Scope Management
Various methods of httpservletresponse interface

Ads