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


Please Help Members By Posting Answers For Below Questions

How do you escape in java?

581


What a static class can contains?

701


What are the three best choices for a development environment?

616


What is the use of default method in interface in java?

555


Explain the difference between extends thread vs implements runnable in java?

542






What about interthread communication and how it takes place in java?

552


What technique is carried out to find out if a particular string is empty?

578


What is purpose of applet programming?

644


Explain the different forms of polymorphism?

571


What is better- service oriented or batch oriented solutions?

1540


Can the garbage collection be forced by any means?

536


Which is the best sorting technique in java?

529


how does multithreading take place on a computer with a single cpu? : Java thread

698


Can a static method be overridden in java?

559


How do you include a string in java?

527