answersLogoWhite

0

An Access Modifier is a key word in java that determines what level of access or visibility a particular java variable/method or class has. There are 4 basic access modifiers in java. They are:

1. Public

2. Protected

3. Default and

4. Private

Private is the most restrictive access modifier whereas public is the least restrictive. Default is the access protection you get when you do not specifically mention an access modifier to be used for a java object.

Java programming does not run by just a single piece of class that has the whole functionality. You have hundreds of classes that interact with one another, passing data between them and returning output to the user of the system. So it is very important for members of one class to access members of another. Here members may refer to variables, methods and even classes. So, this is where the access modifiers come into picture. The modifier associated with every member of the class determines what level of visibility that member has.

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

How do you let java into your firewall?

To allow Java through your firewall, you need to create an exception for the Java application in your firewall settings. This usually involves accessing the firewall configuration, navigating to the "Allowed Apps" or "Exceptions" section, and adding the Java executable (java.exe) or the specific Java application you want to allow. Make sure to specify the appropriate network types (private, public) for the exception. After saving the changes, restart the firewall if necessary to apply the new rules.


Why people generally use oracle as backend of java projects?

there are certain rules to make up a relational data base management system, oracle follows it and so its an rdbms


What are the rules in naming a source file in JAVA program?

The basic rule is that the file name should match the name of the topmost public class in the .java file. The names are usually camel case and can contains alphabets and numbers. It should begin only with an alphabet.


Explain the statement there is more to java than the language?

All programming languages are abstract things - collections of rules which dictate how symbols may form words, how words may form statements, and how statements may form programs. Programming languages need "other stuff" in order to actually be useful. For most languages this will include either a compiler or an interpreter which can turn source code into executable programs. Java's "other stuff" includes a compiler, which turns Java source code into Java byte code, and the Java Virtual Machine (JVM), which allows Java byte code to execute on your computer.


Does Visual Java plus plus and Java Builder is different from the Java language?

Yes!Visual Java plus plus and Java Builder is different from the Java language?

Related Questions

What is a feature of firewalls?

Rules can be set up on port accessibility


Write a Program to demonstrate accessibility of different access specifiers in java?

An Access Modifier is a key word in java that determines what level of access or visibility a particular java variable/method or class has. There are 4 basic access modifiers in java. They are: 1. Public 2. Protected 3. Default and 4. Private Private is the most restrictive access modifier whereas public is the least restrictive. Default is the access protection you get when you do not specifically mention an access modifier to be used for a java object.


What is the hospital wheelchair policy regarding patient usage and accessibility?

The hospital wheelchair policy outlines rules for patient usage and accessibility of wheelchairs within the facility. This policy ensures that patients have access to wheelchairs when needed and that they are used safely and appropriately.


Can you use constructor in servlet?

Yes you can but it is not required. A Servlet is nothing but another .java file and all rules that are applicable to standard Java classes are applicable to them. Note: Even if you write a constructor in a servlet, it will not get executed.


In switch case programming why are some parameters always in brackets?

There are syntax rules that are to be followed in every programming language and similar is the case here. These rules are a part of the Java language specification.


What is a API in java?

Application Programming Interface. Rules about how a certain software can communicate with other software.check ot the API library.


How do you let java into your firewall?

To allow Java through your firewall, you need to create an exception for the Java application in your firewall settings. This usually involves accessing the firewall configuration, navigating to the "Allowed Apps" or "Exceptions" section, and adding the Java executable (java.exe) or the specific Java application you want to allow. Make sure to specify the appropriate network types (private, public) for the exception. After saving the changes, restart the firewall if necessary to apply the new rules.


What are Accessibility options?

definition of accessibility options


Why people generally use oracle as backend of java projects?

there are certain rules to make up a relational data base management system, oracle follows it and so its an rdbms


What is the Tagalog word for accessibility?

Tagalog translation of accessibility: kadalian


What are the rules in naming a source file in JAVA program?

The basic rule is that the file name should match the name of the topmost public class in the .java file. The names are usually camel case and can contains alphabets and numbers. It should begin only with an alphabet.


What Indonesian island is Jakarta on?

java