Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Java Part 2
« Previous
Next »
____________ means each method in a multithreaded environment doesn’t access data by multiple threads at the same time.
Options
- Thread detach
- Thread isolation
- Thread safety
- Thread lock
CORRECT ANSWER : Thread safety
Discussion Board
Thread Safety
Java Thread Safety is a process to make any program in multi-threaded or non-multithreaded system to be safe and can be used in such environments. There are different ways in which a program thread can be safe and it is as follows:
1. Synchronization is used for the java safety and mostly used in threads to provide safe operations.
2. Atomic wrapper classes can be used from java.util.concurrent.atomic package.
3. Volatile keywords with variables can be used to make every thread read the data from the memory and doesn't allow it to read from the thread cache.
Rohit Sharma 08-7-2014 02:57 AM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲