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

what is the diffrence between class and object?

5 Answers  


Are arrays passed by reference in java?

0 Answers  


Can a class be defined inside an interface?

0 Answers  


Why do we use string?

0 Answers  


How will you reverse a singly-link list?

0 Answers   Akamai Technologies,






Explain what is Marker interface?

0 Answers   BirlaSoft,


Are there any tools available in java to create reports?

5 Answers  


What is member in java?

0 Answers  


What is the difference between iterator and list iterator?

0 Answers  


Which class is the immediate superclass of the Container class?

1 Answers  


What is supplier in java?

0 Answers  


What are the characteristics provided in jdk1.6 apart from other versions?

3 Answers   TCS,


Categories