answersLogoWhite

0

Visibility control in Java is implemented using Access Modifiers. 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.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you solve no console in java i have already enabled java console in java window from control panel but whenever i run my java program i keep receiving a no console message?

If you have enabled the Java Console in the Java Control Panel but are still not seeing the console when running your Java program, there are a few possible reasons for this issue. Firstly, ensure that your Java program is actually printing output to the console using System.out.println() statements. Additionally, check if your program is running in an environment that supports console output, such as a terminal or command prompt. Finally, make sure that your program is not terminating too quickly before you can see the console output, as this can sometimes give the appearance of no console being available.


What do you mean by multithread program in java?

A Program in Java that spawns multiple threads is called a multithreaded program in Java.


What is java program on computers?

#!/usr/bin/perl print 'java program';


What is java virtucal mechine?

That refers to the program that runs the compiled Java program.


What is the use of thread in java?

Thread is a single sequential flow of control within program. Each flow of control may be thought of as a seperate lines of code(module) is called as thread.Actually thread is a predefined class in java. threads are used to handle Exceptions in java.


What powder game doesnt need java?

Any program written for the Java technology needs Java. Any program NOT written for Java DOESN'T need it.


Why are Java files important in programming?

Without Java files, we wouldn't be able to program in Java. And some of us find Java to be an important programming language.


Java Track?

Java Track is the java training program offered by SynergisticIT


Where can one get the program Java?

The program Java can be downloaded from the official Java website on the internet. The program is free for personal use, so it can be downloaded without any cost by anyone.


What is a Java applet?

PCH answer small Embedded Java Program.


Do I need Java?

No, if a program needs Java it'll specify that it does in the installer package for the program or on the website for the program or a section usually called "Requirements" for a specific program.


What is java one studio?

it is java people community to discuss about the new development and new development those are done with java language it is presented