Oracle WebLogic Server 12c: Administration I — Question 50

You created a shutdown class MyClass that you would like to execute just before server shutdown.
Which statement is true regarding MyClass?

Answer options

Correct answer: B

Explanation

The correct answer is B because MyClass needs to be included in the WebLogic Server's classpath for it to be executed properly during shutdown. Options A and C are incorrect as they imply limitations on configuration and targeting that are not true. Option D is also misleading since while having a main method is not necessary for a shutdown class, it does not affect the execution of the class itself.