Is Java Class Threadsafe ????? How to make Java class Thread
safe??
Answer Posted / 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 |
Post New Answer View All Answers
How to use string tokenizer class.
What is meant by object?
What is role of void keyword in declaring functions?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is java’s garbage collected heap?
How do you read and print a string in java?
What is a short in java?
What is the maximum length of a url?
Do you know why doesn't the java library use a randomized version of quicksort?
How do I get a substring?
Whats the difference between notify() and notifyall()?
Is a boolean variable?
How do I type unicode?
What are 5 boolean operators?
What is java literals?