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 the diffrence between class and object?
Are arrays passed by reference in java?
Can a class be defined inside an interface?
Why do we use string?
How will you reverse a singly-link list?
0 Answers Akamai Technologies,
Explain what is Marker interface?
Are there any tools available in java to create reports?
What is member in java?
What is the difference between iterator and list iterator?
Which class is the immediate superclass of the Container class?
What is supplier in java?
What are the characteristics provided in jdk1.6 apart from other versions?