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

what is the replacement for GOTO in java?

2 Answers   CTS,


How is a structure different from array ?

0 Answers   Amdocs,


What is the primary benefit of encapsulation?

0 Answers  


Why is a singleton bad?

0 Answers  


How many bits are allocated to represent character of character sets - Unicode, ASCII, UTF-16, UTF-8?

1 Answers  






Write a program in java to establish a connection between client and server?

0 Answers  


What are the different types of multitasking?

0 Answers  


How are variables stored?

0 Answers  


Tell me about your ability to work under pressure

0 Answers   AXA,


Why java is not a pure object oriented language?

5 Answers   IBM,


What is the synchronized method modifier?

0 Answers  


What are the data types supported by java?

0 Answers  


Categories