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 |
Describe the syntax of multiple inheritance? When do we use such an inheritance?
Where can I find data structures question and answers with comprehensive working code written in Java
Explain the concept of polymorphism with examples?
I need help please send me reply: Write a program "if given a string like 'HAT', the combination's returned should be like ATH,THA,TAH in java"?
Explain wrapper classes in java?
What JNDI(Java Naming and Directory Interface) provides?
what is function overloading in java?
0 Answers Tavant Technologies, TCS, Virtusa,
What is flush () in java?
How to override a equals() method and what is the use?
What is serialization in java?
How to split a string in java?
What is the difference between a synchronized method and a synchronized block?