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
What is the char data type?
Is space a character in java?
What will be the default values of all the elements of an array defined as an instance variable?
What are anonymous inner classes?
What is the access scope of a protected method?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
What is a type parameter in java?
What is parse method?
What is jee6?
Can a string be null?
What are the wrapped, classes?
how many types of Inheritance?
What is null statement?
Why main method is called first in java?
What are the basic interfaces of java collections framework?