What is Stateless Object in Java?

前端 未结 10 1420
猫巷女王i
猫巷女王i 2020-11-30 21:32

Currently I\'m reading \"Java concurrency in practice\", which contains this sentence:

Since the action of a thread accessing a stateless object can\'

10条回答
  •  眼角桃花
    2020-11-30 21:52

    If you can not change any parameter or value etc. of an object, after its creation, then that object is thread-safe.

提交回复
热议问题