832 views
0

Which of the following are the best practices for working with doPrivileged?

 
Keep all code inside the run method
Catch PrivilegedAction exceptions
Allow caller to directly provide inputs for doPrivileged
Use the PrivilegedExceptionAction interface
Shubham Haldkar Changed status to publish 18, October ,2022
0

Catch PrivilegedAction exceptions

 

Use the PrivilegedExceptionAction interface

Shubham Haldkar Changed status to publish 18, October ,2022
Shopping Basket