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
a. public boolean init() { return true; }
b. @PostConstruct
b. private static void init() {}
c. @PostConstruct
c. private void init() {}
d. @PostConstruct
d. public static void init() {}





Answer: C


Learn More :