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 |
State some situations where exceptions may arise in java?
What is use of functional interface in java 8? Explain
What is I/O Filter?
What is singleton class?
16 Answers 3i Infotech, 7 Seas, ABC, Amdocs, Cap Gemini, Oracle, Persistent, TCS, Techforza,
What is the difference between state-based unit testing and interaction-based unit testing?
Do extraneous variables affect validity?
Can we execute java program without main method?
How do you write a scanner class in java?
What are the differences between Java 1.0 and Java 2.0?
Explain about core java?
Explain the hierarchy of java exception classes?
Can constructor be synchronized?