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 |
What is predicate in java?
How will you communicate between two applets?
Which method will get invoked first in a stand alone application?
What are the names of interfaces that doesn't consists of method/s ?
Can you add null to a list java?
What are different type of access modifiers?
IS method overriding is Duplication of Methods?
what is Vector class?
What is the this keyword?
What are Normalization Rules? Define Normalization?
Is main a keyword in java?
What is a pattern what is an anti pattern?