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









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?
The ActionForm and what are important methods in ActionForm.
What modifiers are allowed for methods in an Interface?
what is class methods in objective c
what is class methods in objective c
What are the methods in Object? - Java Beginners
methods and access specifiers in java - Java Beginners
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
Can a class be declared as protected?
Access level
PHP Access Specifiers
linking jsp with database using classes and methods and then access them all in to my jsp page - JSP-Servlet
Access Modifier
scope in jsp
java protected variables
difference between session scope and request scope
Session scope
Protected Java Keyword
php variable scope
ModuleNotFoundError: No module named 'protected'
make a file password protected
Mean by Bean Scope
scope of strategic management
Access Specifiers and Access Modifiers
Methods of HttpServlet
access
Access Modifiers in java
Flex Variable Scope
Jsp Scope Variables - Java Interview Questions
setStyle() and getStyle() methods Example
Project Scope Management
ModuleNotFoundError: No module named 'scope'
access modifier - Java Interview Questions
ModuleNotFoundError: No module named 'django-protected-files'
ModuleNotFoundError: No module named 'django-protected-files'
ModuleNotFoundError: No module named 'django-protected-media'

Ads