Is Java Class Threadsafe ????? How to make Java class Thread
safe??

Answers were Sorted based on User's Feedback



Is Java Class Threadsafe ????? How to make Java class Thread safe??..

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

Is Java Class Threadsafe ????? How to make Java class Thread safe??..

Answer / divya

using synchronization,immutable objects,thread safe wrappers

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

How do you define a parameter?

0 Answers  


Can a list be null in java?

0 Answers  


write a program to create an vector and listeterator.and value should be enter through keyboard.

1 Answers   Axcend,


What are blocks?.

1 Answers   TCS,


What is arguments in java?

0 Answers  






Is intellij better than eclipse?

0 Answers  


What is bool mean?

0 Answers  


How we get some middle records in one table?

2 Answers   3i Infotech,


What is ++ a in java?

0 Answers  


What is type parameter in java?

0 Answers  


Is alive in java?

0 Answers  


What are loops in java? What are three types of loops?

0 Answers  


Categories