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
give an example for encapsulation?
What is the unit of plancks constant?
What is visibility mode?
What are adapter classes?
What is character in data type?
What is return null in java?
explain different ways of using thread? : Java thread
What are heterogeneous objects?
How do you write a conditional statement?
What is nextline method in java?
When is an object subject to garbage collection?
How do you test a method for an exception using junit?
Can an abstract class be a final class?
What are different types of inner classes ?
Can you call a method in a method?