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 to use string tokenizer class.

614


What is meant by object?

570


What is role of void keyword in declaring functions?

569


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

539


What is java’s garbage collected heap?

529






How do you read and print a string in java?

519


What is a short in java?

494


What is the maximum length of a url?

505


Do you know why doesn't the java library use a randomized version of quicksort?

546


How do I get a substring?

522


Whats the difference between notify() and notifyall()?

564


Is a boolean variable?

513


How do I type unicode?

525


What are 5 boolean operators?

614


What is java literals?

572