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 |
How do you control extraneous variables?
What are event-delegation model and event-inheritance model? Which is best?
Who is the owner of java?
In which language JVM (Java Virtual Machine) is implemented
What is the difference between reader/writer and inputstream/output stream?
explain how many oops concepts available in java with realtime scenarios?
Does list maintain insertion order java?
How many digits can a float hold?
WHAT IS THE SCOPE FOR COREJAVA...? IS JAVA ONLY CORE JAVA ?
How can I debug the Java security exceptions and AccessControlExceptions?
Is sizeof a preprocessor?
Explain serialization and deserialization in java?