Mark works as a Programmer for InfoTech Inc. He develops the following code snippet.
package Mark.tutorial.javaee.ejb;
import java.util.logging.Logger;
import javax.annotation.Resource;
import javax.ejb.Stateless;
import javax.ejb.Timeout;
import javax.ejb.Timer;
import javax.ejb.TimerService;
@Stateless
public class TimerBean implements TimerSessionBean {
@Resource
TimerService timerService;
private static final Logger logger = Logger.getLogger
("com.sun.tutorial.javaee.ejb.timersession.TimerSessionBean");
public void createTimer(long intervalDuration) {
Timer timer = timerService.createTimer(intervalDuration, "New timer created");
}
@Timeout
public void timeout(Timer timer) {
logger.info("Timer Timeout");
}
}
which of the following statements are true about the code?
Each correct answer represents a complete solution. Choose all that apply.