answersLogoWhite

0


Best Answer

It tells the compiler that (a hardware) register is subject to change.

volatile is used with pointer (AFAIK) and tells the compiler not to optimize and to check at the place where the pointer points, every time around a loop.

Unless you are programming software to directly access hardware, you do not need volatile.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is volatile access type modifier?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Which of these is an access modifier for a method - void protected int or main?

* void - This is a return type - or, more correctly, specifies that a method has no return type.* protected - This is an access modifier. It says that the only classes that can call this method are subclasses and classes in the same package.* int - This is a value type (or return type).* main - This is the name of the method.


Which is java default access specifier?

There is no such thing as an access specifier in Java. There are access modifiers.The default access modifier if unspecified is to allow access to classes in the current package only, except within an interface where the default is 'public'


What is acess spacifier 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.


Access specifier in java?

There is no such thing as an access specifier in Java. There are 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. Public2. Protected3. Default and4. PrivatePrivate is the most restrictive access modifier whereas public is the least restrictive. The default access modifier if unspecified is to allow access to classes in the current package only, except within an interface where the default is 'public'.


Discuss the different level of access protection 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.

Related questions

What is the volatile access type modifier?

Warns the compiler that the value of the variable in question can be changed asynchronously, so it never optimize it into register.


What type of memory loses its contents when power is turned off on your computer?

RAM, or random access memory.


Which of these is an access modifier for a method - void protected int or main?

* void - This is a return type - or, more correctly, specifies that a method has no return type.* protected - This is an access modifier. It says that the only classes that can call this method are subclasses and classes in the same package.* int - This is a value type (or return type).* main - This is the name of the method.


Which access modifier makes an element available anywhere to any class?

The public access modifier will make an element available to any class.


What type of memory is considered volatile memory?

In computing the most common type of currently used volatile memory is random access (RAM). RAM volatility involves the loss of data upon power loss to the RAM modules.


Explain different access modifier 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 difference between access specifier and access modifier?

An access modifier is another name for an access specifier, which in object-orientated software is a keyword applied to a variable which indicates which other parts of the programme are permitted to access it.


What kind of memory is volatile memory?

RAM[Random Access Memory] is volatile memory.


What type of memory as volatile?

RAM, Random Access Memory is the Volatile memory; Which in return means that when you shut off your computer this memory will be completely wiped


How do you spell eaither?

The modifier either means whichever, while etheris a volatile liquid, or a non-earthly realm.


Which is java default access specifier?

There is no such thing as an access specifier in Java. There are access modifiers.The default access modifier if unspecified is to allow access to classes in the current package only, except within an interface where the default is 'public'


What type of volatile memory is usually used only for temporary storage while running a program?

RAM--Random Access Memory.