Multiple choice technology web technology

Spring Framework beans cn have class level variables other than logger object

  1. True

  2. False

  3. Cant say

  4. None

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Spring Framework beans should generally avoid class-level variables (other than static final constants or loggers) because they can cause thread-safety issues. Spring beans are typically singletons, and mutable instance variables can lead to race conditions in multi-threaded environments.