we have two threads..both the threads are reading the
data.. is there any need of synchronization
there?...justify it?
Answer Posted / babu
sychronization is used to execute only one thread or one
block ata time.if your not declare sychronized in the method
there is chance to execute the mixed data i.e.; to threads
start at atime.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Difference between comparator and comparable in java?
Can a constructor be protected?
Can a constructor call another constructor?
What are encapsulation, inheritance and polymorphism?
What is the difference between a static and a non-static inner class in java programming?
What is locale in java?
What does sprintf return?
How do you create a reference in java?
What is java life cycle?
What is the difference between integer parseint and integer valueof?
Can we instantiate interface in java?
Explain list interface?
What are internal variables?
What are the 7 types of characters?
Which software is used for java programming?