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() {}




Answer: C


Learn More :