Should synchronization primitives be used on bean methods?



Should synchronization primitives be used on bean methods?..

Answer / Vaishali Vashisth

Synchronization should be used judiciously on bean methods, as excessive synchronization can lead to performance bottlenecks and other issues. It's generally best to minimize the use of synchronization, focusing on making methods thread-safe through proper design and concurrent collection usage.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

Is it possible to stop the execution of a method before completion in a sessionbean?

1 Answers  


What is serialization and de-serialization ?

5 Answers  


What is the use of Class.forName

20 Answers   HCL,


Difference between sleep and suspend?

3 Answers  


Which containers use a border layout as their default layout?

1 Answers  


What is an abstract method?

1 Answers  


how to get value in combo for updation?

1 Answers   CMC,


What are the call back methods in entity bean?

1 Answers  


What is abstract schema?

1 Answers  


Explain phantom read?

1 Answers  


What is the return type of interrupt method?

2 Answers  


What is a layout manager?

2 Answers  


Categories