avatar
Java EE 习题 1# Java - 爪哇娇娃
s*8
1
import javax.ejb.*;
import javax.annotation.*;
import javax.persistence.*;
______________
public class HelloBean {
public void hello() {
...
}
}
Which of the following annotations can be added to the blank to make
HelloBean a valid EJB bean class (there may be more than one correct answers
)?
A, @Stateless
B, @Stateful
C, @Singleton
D, @EJB
E, @Entity
F, @ManagedBean
G, All of the above
H, None of the above
avatar
q*u
2
abde
cheat sheet一把,ms没有singleton和ManagedBean

import javax.ejb.*;
import javax.annotation.*;
import javax.persistence.*;
______________
public class HelloBean {
public void hello() {
...
}
}
Which of the following annotations can be added to the blank to make
HelloBean a valid EJB bean class (there may be more than one correct answers
)?
A, @Stateless
B, @Stateful
C, @Singleton
D, @EJB
E, @Entity
F, @ManagedBean
G, All of the above
H, None of the above

【在 s***8 的大作中提到】
: import javax.ejb.*;
: import javax.annotation.*;
: import javax.persistence.*;
: ______________
: public class HelloBean {
: public void hello() {
: ...
: }
: }
: Which of the following annotations can be added to the blank to make

avatar
s*8
3
abc
Singleton is new in ejb 3.1, ManagedBean is new in Java EE 6.
@EJB declares a ejb-ref, not ejb bean class.
@Entity declares a persistence entity, which is not EJB.
avatar
q*u
4
哟呵,3.1, ee6, 好题阿。。。

abc
Singleton is new in ejb 3.1, ManagedBean is new in Java EE 6.
@EJB declares a ejb-ref, not ejb bean class.
@Entity declares a persistence entity, which is not EJB.

【在 s***8 的大作中提到】
: abc
: Singleton is new in ejb 3.1, ManagedBean is new in Java EE 6.
: @EJB declares a ejb-ref, not ejb bean class.
: @Entity declares a persistence entity, which is not EJB.

avatar
q*u
5
接着贴阿,再接再厉

import javax.ejb.*;
import javax.annotation.*;
import javax.persistence.*;
______________
public class HelloBean {
public void hello() {
...
}
}
Which of the following annotations can be added to the blank to make
HelloBean a valid EJB bean class (there may be more than one correct answers
)?
A, @Stateless
B, @Stateful
C, @Singleton
D, @EJB
E, @Entity
F, @ManagedBean
G, All of the above
H, None of the above

【在 s***8 的大作中提到】
: import javax.ejb.*;
: import javax.annotation.*;
: import javax.persistence.*;
: ______________
: public class HelloBean {
: public void hello() {
: ...
: }
: }
: Which of the following annotations can be added to the blank to make

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。