Card 43 / 59: Which of the following represents a legal EJB3 session bean declaration using annotations only (no deployment descriptors)?
A)
@Local public interface Engine {} @Stateless public class CarEngine implements Engine{}
B)
@Local @Stateless public interface Engine {} public class CarEngine implements Engine{}
C)
public interface Engine {} @Local @Stateless public class CarEngine implements Engine{}
D)
public interface Engine {} public class CarEngine implements Engine{}
Answer:
A) @Local public interface Engine {} @Stateless public class CarEngine implements Engine{}
C) public interface Engine {} @Local @Stateless public class CarEngine implements Engine{}
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|