PrepAway - Latest Free Exam Questions & Answers

What is the best way to achieve this?

A web application uses a set of Java classes, which are also used by several other web applications.
The application designers want to separate out this logic into its own component to allow reuse and
still give the developers the ability to edit the code in those classes as the project progresses. What
is the best way to achieve this?

PrepAway - Latest Free Exam Questions & Answers

A.
create a new Java project, export it as a JAR, and import it into the web project into the lib folder

B.
copy the Java source code into the web project as into the Java folder

C.
create a new Java project and add this project to the deployment assembly list

D.
encapsulate the Java logic in an EJB and invoke this from the web project


Leave a Reply