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 unsigned char?
Which of the following is not an isolation level in the JDBC
write a simple program inheritance?
What is set and get methods in java?
What's the base class in java from which all classes are derived?
What is the r character?
What is the difference between iterator and list iterator?
what is optional in java 8?
What method is used to know the status of Checkbox(i.e it is checked or unchecked)?
What is super in java?
What do you understand by classes in java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread