Answer Posted / reddy
Two or more threads trying to access the same method at same
point of time leads to Synchronization.If that method is
declared as synchronized,only one thread can access at that
time of another thread can access that method only if the
first thread task is completed.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Can we have two main methods in a java class?
How do you use spaces in java?
What is the difference between integer parseint and integer valueof?
How do you reverse a string in java?
Explain constructors and types of constructors in java.
What is token in java?
Why is a string immutable?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
Can we override the overloaded method?
What is the use of arraylist class in java?
What is preparedstatement in java?
How can we make sure main() is the last thread to finish in java program?
When should I use stringbuffer?
How do you add spaces in java?
What is the final method?