Is Java Class Threadsafe ????? How to make Java class Thread
safe??
Answers were Sorted based on User's Feedback
Answer / bojjanna
By Default java class a not tread safe, i we make a tread
safe we have three ways
1) avoiding the instance variables
2) by using Sycrinization
3) by using Syncronize block
Is This Answer Correct ? | 19 Yes | 1 No |
Answer / divya
using synchronization,immutable objects,thread safe wrappers
Is This Answer Correct ? | 0 Yes | 1 No |
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What is boolean query?
What is the difference between instanceof and isinstance?
What is type parameter in java?
What is the difference between the paint() and repaint() methods in java programming?
What is meant by JVM? Is JVM platform independent or not?
What do you mean by compiler?
What is t type java?
List interface?
What is the purpose of the System class?
What does arrays sort do in java?
Write a program to search a number in the given list of numbers.