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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the maximum size of hashmap in java?

537


What is the equal sign?

565


Explain java code for recursive solution's base case?

574


What is the use of put method?

516


Can the garbage collection be forced by any means?

534






What is procedure overloading?

1802


What if static is removed from main method?

575


How can a gui component handle its own events in java programming?

536


What is the maximum size of a string in java?

551


is it possible to instantiate the math class?

535


What is nextline method in java?

564


What is difference between static class and singleton pattern?

479


What is pre increment and post increment in java?

503


Difference between java and javascript

586


explain copyonwritearraylist and when do we use copyonwritearraylist?

545