Your consulting company has been asked to enhance an existing application. The current application is a
100% Real QandAs | 100% Real Pass
two-tier system in which all the business logic is located in thick clients. You are considering a solution that would involve moving the business logic into the server's database In the form of stored procedures.
Which statement is an expected outcome of your proposed solution?
A. It will improve the scalability of the system.
B. It will improve the manageability of the system.
C. It will recline the amount of traffic on the network.
D. It will, in effect, turn the application into a three-tier system.
While analyzing an existing web application, you observe the following issues in the source code: Duplicate control code is scattered throughout various view.
Business and presentation logic are mixed within these view.
The next phase of the project involves refactoring the existing code to address these two issues.
Which design pattern, if employed in the refactoring exercise, would most directly address the two issues?
A. Service to Worker
B. Dispatcher view
C. DAO
D. Composite View
Which option describes the design relationship between session beans and entity beans?
A. Aggregation
B. Separation of concerns
C. Common reuse principle
D. Liskov substitution principle
E. Interface segregation principle
You are designing a new subsystem to store and scratch for user commands in a fashion company's website. On class, CommentManager, is responsible for accessing comment data and providing read-only access to other objects in the subsystem.
Which two implementation details are necessary for the Cementmanager class?
A. The storage mechanism implemented in CommentManager must be private to CommentManager.
B. All the accessor and mutator methods in CommentManager must have the static modifier in their declarations.
C. The comments must be assessable directly only within CommentManager.
D. CommentManager should be a singleton object.
Which two statements apply to unsigned applets?
A. They can access the client file system.
B. They can connect to third-party servers.
C. They can connect to the originating host.
D. They can invoke public methods of applets on a page.
E. They can load native libraries.
Which two are significant advantages of developing web applications with JavaServer Faces (JSF)?
A. JSF pages can be previewed outside the web container.
B. Backing beans can be unit tested outside the web container.
C. Client-side validation mechanisms are automatically generated.
D. JSF pages can be integrated with AJAX.
Which two statements are true about the timer service of a business component container?
A. Timed notifications for all types of session beans can be scheduled by using this service.
B. When the server is shut down, the timer is persisted automatically and becomes active again when the server is restarted.
C. Each instance of message driven beans has unique timers.
D. When stateful session bean instance is removed, the container detaches the timers associated with the instance and allocates them to the new instance.
E. When a transaction is rolled hark, the timer creation within the transaction is also rolled back.
You are implementing an online music that will store and play a user's collection of songs. You want users to rate their songs and view the top songs from friends. All queries must complete in four seconds or less.
Which approach would meet the response time requirement with minimal overhead?
A. Java class that uses JDBC with embedded SQL
B. Java class that uses an optimized stored procedure
C. JPA entity class with a lazy fetching strategy
D. JPA entity class with an eager fetching strategy
Which two types of applications benefit from using JavaServer Faces (JSF)?
A. An application with a customizable UI skin
B. An application that implements access control on each action based on user role.
C. An application in which type conversion of the values of UI components is implemented only in Java classes.
D. An application that sets specific database validation listeners on a UI component
Which four services are guaranteed to be present in a specification compliant Java EE container?
A. Security
B. Persistence
C. Naming and messaging
D. Remote connectivity
E. Failover
F. Lifecycle management
G. Multithreading handling
H. Load balancing