we have two threads..both the threads are reading the
data.. is there any need of synchronization
there?...justify it?
Answer Posted / sridhar
In this case synchronization is not requied because u r not
going to change the data.
U can use synchronization but performence will decrease.
| Is This Answer Correct ? | 16 Yes | 0 No |
Post New Answer View All Answers
What is a newline character in java?
What are pass by reference and pass by value?
How is Object Oriented Programming different from Procedure Oriented Programming?
Write a java program to count the number of words present in a string?
What is Applet Stub Interface ?
What is flush buffer?
How do you access command-line arguments within the code?
What is character in data type?
What is method overloading in JAVA? Why is it not present in C ?
Is there is any difference between a scrollbar and a scrollpane?
What do you understand by an io stream?
What is final variable?
What is mutable object and immutable object?
Why lambda expression is used in java?
What is passing value java?