Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Sunil Garg   on Jun 29 In Java Category.

  
Question Answered By: Corey Brown   on Jun 29

As long as variables using in the method  are defined in the method
(i.e. not as class  member variables or anywhere outside method scope),
it is thread safe.
The code you described is thread safe.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Thread-safe static methods Or get search suggestion and latest updates.


Tagged: