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

Where is const variable stored?

0 Answers  


Are constructors methods?

0 Answers  


write a program to create an vector with string(add,remove) operation.and value should be enter through keyboard.

0 Answers   Axcend,


There are 100 keys and values in HashMap.how to get the keys and values?

1 Answers   IBS,


What is the differences between c++ and java? Explain

0 Answers  






Is char a method in java?

0 Answers  


How to define a constant variable in Java?

1 Answers   TCS,


What is thread start?

0 Answers  


What is illegal identifier in java?

0 Answers  


what is optional in java 8?

0 Answers  


How you can create a radio buttion using Checkbox class?

1 Answers  


What are abstract methods in java?

0 Answers  


Categories