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 difference between variable declaration and definition?
What are the restrictions imposed on method overriding?
What is the difference between normal report & matrix report?
Why vector is used in java?
What are wrapper classes in java?
Is ResultSet class?
5 Answers Bally Technologies, TCS,
why java is not supporting multiple inheritence?
why java does not support unsigned keyword?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
how exactly garbage collection take place?
State some advantages of java?
Hi, This is ravi i have a question like this i have string "UNDERSTAND" now i want to count the letters how many times it occures.i.e from the above string the out put should be like this U-1,N-2,D-2,E-1,R-1,S-1,T-1,A-1. how can i achieve this Thnaks in advance for your response ..