If two threads call a static method at the same point of
time, what will happen?
Answer Posted / 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 |
Post New Answer View All Answers
What is the destroy method?
What is boolean used for?
Does java arraylist maintain insertion order?
What is sizeof in java?
Is void a return type?
What are the advantages of exception handling in java?
What if I write static public void instead of public static void in java?
Can we force the garbage collection to run?
How do you join strings in java?
Define canvas?
What are JVM.JRE, J2EE, JNI?
Explain about abstract classes in java?
What is super constructor?
Define class?
How many bits are in a sentence?