posted 16 years ago
Hi,This is another mock question about Bean's lifecycle callback method annotation,I think there is no correct answer,but given answer is C,anyoen agree with me?
Which is a valid Post Construct 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() {}
SCJP 5.0<br />SCWCD1.4<br />SCBCD5