exam questions

Exam 1z0-895 All Questions

View all questions & answers for the 1z0-895 exam

Exam 1z0-895 topic 1 question 53 discussion

Actual exam question from Oracle's 1z0-895
Question #: 53
Topic #: 1
[All 1z0-895 Questions]

A developer wants to package an enterprise bean FooBean within a .war file:
@Stateless
public xlass FooBean {
public void foo () {}
}
Which package approach is correct?

  • A. / (Root) I META INF / I acme I FooBean.class
  • B. / (Root) I acme I FooBean.class
  • C. / (Root) I WEB INF / I acme I FooBean.class
  • D. / (Root) I WEB INF / I Classes/ I acme
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
To include enterprise bean class files in aWARmodule, the class files should be in the
WEB-INF/classes directory.
Note: Enterprise beans often provide the business logic of a web application. In these cases, packaging the enterprise bean within the web applicationsWARmodule simplifies deployment and application organization. Enterprise beans may be packaged within aWARmodule as Java programming language class files or within a JAR file that is bundled within theWARmodule.
Reference: The Java EE 6Tutorial, Packaging Enterprise Beans inWAR Modules

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago