If two threads call a static method at the same point of
time, what will happen?
Answers were Sorted based on User's Feedback
Answer / terlis
if the method is not synchronised, two threads can acees the same method at the same time and there will be inconsistency.
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / ashutosh dhar
Nd if it is Synchronized then which thread to be choosen
depends upon the OS.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / amitasite
If method doesn't access static member variable but only
local variable then there is no inconsistency.
| Is This Answer Correct ? | 1 Yes | 1 No |
Is java type safe?
how to write a program for sending mails between client and server
How is string stored in java?
What is the base class in java from which all classes are derived?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
what is an anonymous class?
What is the final variable?
Which is the class in java?
What are the differences between throw and throws?
What is a resource leak ?
What all access modifiers are allowed for top class ?
How to print nodes of a Binary tree?