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 |
what is the replacement for GOTO in java?
How is a structure different from array ?
What is the primary benefit of encapsulation?
Why is a singleton bad?
How many bits are allocated to represent character of character sets - Unicode, ASCII, UTF-16, UTF-8?
Write a program in java to establish a connection between client and server?
What are the different types of multitasking?
How are variables stored?
Tell me about your ability to work under pressure
Why java is not a pure object oriented language?
What is the synchronized method modifier?
What are the data types supported by java?