OCMJEA Mock Exam – 9

ocmjea-thumbnail

202 . The Remote Interface of an Enterprise Bean extends from? java.ejb.EJBRemote javax.ejb.RemoteInterface javax.ejb.EJBObject javax.rmi.RemoteReference 203 . Which of the following are not applicable to the Primary Key Class? It must implement the java.io.Serializable interface It must provide a default constructor It must override hashCode() and equals() Cannot be undefined if the PK is a […]

OCMJEA Mock Exam – 8

ocmjea-thumbnail

177 . You are designing a 3-tier architecture for a new application your company intends to deploy as part of it’s marketing strategy. This application will allow users to book rental cars over the web and is estimated to save the company millions over the next few years. Due to the sheer number of users, […]

OCMJEA Mock Exam – 7

ocmjea-thumbnail

152 . You have just started a new job working for a top finance company and you have been asked to provide a user-friendly interface to an existing mainframe application. You don’t have any access to the mainframes source code. What is the best technique for this? Choose the one below: It can’t be done […]

OCMJEA Mock Exam – 6

ocmjea-thumbnail

127 . In EJB 2.0 what is the Component interface? The interface that Message-Driven Beans must implement There is no component interface in EJB 2.0 The new name for the Home interface The new name for the Remote interface 128 . You are working on a new application that will help your company co-ordinate sales […]

OCMJEA Mock Exam – 5

ocmjea-thumbnail

102 . What do Isolatable and Durable mean with reference to ACID? Isolatable means only 1 transaction can execute at a time Isolatable means the transaction is the same as other transactions in structure Isolatable means a transaction must execute without the interference from other processes or transactions Isolatable means the transaction was started and […]

OCMJEA Mock Exam – 4

ocmjea-thumbnail

77 . You need to replace ASP scripts. What J2EE technology do you use? JMS, JSP and Servlets JSP and Servlets JTA, JSP and Servlets Applets 78 . As part of your new application you need to connect to a database. You don’t have any access to the database server so you can’t change the […]

OCMJEA Mock Exam – 3

ocmjea-thumbnail

52 . You are working for a web design company and one of your clients would like to convert their website that currently uses Perl and CGI scripts over to a language that is easier to maintain and reuse. Their website is a sports betting website where the customer is able to logon and place […]

OCMJEA Mock Exam – 2

ocmjea-thumbnail

27 . ‘A’ has a dependency with ‘B’ is best expressed by? Choose the one below: Option a Option b Option c Option d Option e Options b and d Options d and e 28 . Refer to the following diagram? From the following diagram it can be deduced that: Choose the one below: Changes […]

Finalize Method – OCPJP 6

ocpjp-6-thumbnail

2) What will be the output of the following program? The program will output ‘finalize’. It is unsure that the finalize() method will be called by the Garbage Collector. As soon the object reference ‘object’ is set to null, there is a possibility that the method ‘finalize()’ will be called. The program will cause compile-time […]

Console API – OCPJP 6

ocpjp-6-thumbnail

5) What will be the output of the following program? The program will output ‘100.000000 – 100’. The program will output ‘100 – 100.000000’. The program will throw a IllegalFormatConversionException at run-time. The program will output ‘100 – 100’. Get more questions on Console Answer 5) b. Here the ordering of the arguments (anInt and […]