Is java Class Thread safe ???? How to make java Class Thread
safe ??

Answer Posted / avinash pandey

NO Java class is not Thread Safe , for making thread safe to
Java class we have to use either Synchronized method or
Synchronized block...

Is This Answer Correct ?    28 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are streams faster than for loops?

654


Explain different way of using thread?

757


Do I need both jdk and jre?

693


Why bean class is used in java?

633


What is jndi datasource in java?

654


How do I install eclipse?

677


Spring framework ---Can somebody explain me in easily understandable format about AOP, IOC and DI, so that i can explain in interview rather than just telling what is available in net. I am not able to understand that also. I am new to Spring

1757


How can I write a program that takes command line input?

662


What is cdi in java?

663


What is xml file in java?

695


Do I need to install jre if I have jdk?

653


How do I run a project in eclipse?

645


Why are command line arguments passed as a string?

687


What is the use of flatmap?

732


What do you understand by casting in java language? What are the types of casting?

621