Which is a valid Postconstruct method in a message-driven bean class?

Which is a valid Postconstruct method in a message-driven bean class?

Which is a valid Postconstruct method in a message-driven bean class?

A.
@PostConstruct
public boolean init() { return true; }

B.
@PostConstruct
private static void init () {}

C.
@PostConstruct
private void init ()

D.
@PostConstruct
public static void init () {}



Leave a Reply 0

Your email address will not be published. Required fields are marked *