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 numeric data type?
What is the purpose of assert keyword used in jdk1.4.x?
What is meant by distributed application? Why are we using that in our application?
Explain the use of volatile field modifier?
Explain about data types?
What is the GregorianCalendar class?
Difference between array and arraylist.
23 Answers Arise Solution, Banca Sella, iFocus, NIC, Sai Softech, Solartis, TCS, Verizon,
explain the classification of exception and hoew to handle the exceptions
What does || mean in vectors?
how can u handle run time exception in java? explain with brief explanation with examples?
Differentiate between nested and inner class in java.
0 Answers Akamai Technologies,
Define a java class.