Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Describe the syntax of multiple inheritance? When do we use such an inheritance?

0 Answers   Fidelity,


Where can I find data structures question and answers with comprehensive working code written in Java

0 Answers   Amazon,


Explain the concept of polymorphism with examples?

6 Answers   Summation Tech,


I need help please send me reply: Write a program "if given a string like 'HAT', the combination's returned should be like ATH,THA,TAH in java"?

4 Answers  


Explain wrapper classes in java?

0 Answers  


What JNDI(Java Naming and Directory Interface) provides?

4 Answers  


what is function overloading in java?

0 Answers   Tavant Technologies, TCS, Virtusa,


What is flush () in java?

0 Answers  


How to override a equals() method and what is the use?

1 Answers  


What is serialization in java?

0 Answers  


How to split a string in java?

0 Answers  


What is the difference between a synchronized method and a synchronized block?

0 Answers  


Categories