If two threads call a static method at the same point of
time, what will happen?

Answers were Sorted based on User's Feedback



If two threads call a static method at the same point of time, what will happen?..

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

If two threads call a static method at the same point of time, what will happen?..

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

If two threads call a static method at the same point of time, what will happen?..

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

Post New Answer

More Core Java Interview Questions

how to transactions(Bank transactions) in business process in ejb?

1 Answers   Photon,


Can a private method be declared as static?

0 Answers   Global Logic,


Is null false in java?

0 Answers  


Explain the importance of thread scheduler in java?

0 Answers  


What is a loop java?

0 Answers  






Is list thread safe in java?

0 Answers  


What is general methodology?

0 Answers  


How can an object be unreferenced?

0 Answers  


What is lazy initialization in java?

0 Answers  


Interface A { String test(); } Interface B { int test(); } Create a class AB which must implements both A & B interfaces.

17 Answers   Hewitt,


what is Inheritense

3 Answers   Tech Mahindra,


is it possible to instantiate the math class?

0 Answers  


Categories