Are enterprise beans allowed to use thread.sleep()?



Are enterprise beans allowed to use thread.sleep()?..

Answer / Pratibha Pal

No, Enterprise Beans are not supposed to use Thread.sleep(). This method can lead to unpredictable behavior and potential deadlocks in a container-managed environment.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

Write a program on RMI and JDBC using StoredProcedure?

1 Answers  


Why are component architectures useful?

1 Answers  


Explain Object Serialization and it can be used?

3 Answers   Infosys,


How are commas used in the intialization and iteration parts of a for statement?

1 Answers  


What is the relationship between the canvas class and the graphics class?

1 Answers  


What is aop(assepct oriented programing)?

1 Answers  


What is scalable, portability in the view of J2EE?

1 Answers  


What is servlet preinitialization?

3 Answers   iFlex,


What is Remote Server?

1 Answers   TCS,


How many layers are there in RMI and what are they?

1 Answers  


Define prototype?

1 Answers  


What is the difference between the ‘font’ and ‘fontmetrics’ class?

1 Answers  


Categories