1. An applet will directly accesses Database using
JDBC. No database installation (or) configuration is
to be perform on client workstations which JDBC driver
used in this situation.
a) Type-1 JDBC-ODBC Bridge Driver
This is ruled out as this requires ODBC configuration on client machine. b) Type-2 Native API partly Java Driver
this is also ruled out as applet cannot access native code. c) Type-3 JDBC-Net pure Java Driver
This is correct as the driver is dynamically downloaded d) Type-4 Native protocol pure Java Driver
This is ruled out for the reason mentioned for b. e) Type-5 Standard internet driver
This is wrong as there is not such driver as this. 2. Which is true in Container Managed Persistent(CMP)
Enterprise bean.
a) Container managed fields must be declared as Public
b) The Primary Key can be defined at deployment time.
c) The SQL for any finder methods is stored in the Deployment Discriptor
d) Fields to table mapping information is stored in Deployment Discriptor
a,b and d are correct. 3. Dynamic access to remote CORBA objects is obtained
by client side applications via
a) location directory
b) implementation repository
c) object registry
d) naming server directory
e) interface respiratory
e should interface repository. b and e should be right. Not sure. 4. Which of the method names of ejb avail thru' JNDI
a) register()
b) put()
c) bind()
d) store()
e) insert()
Neither of the above is correct 5. Select the distributed object protocol from following.
a) RPC
b) CORBA
c) RMI-IIOP
d) RMI-JRMP
a and b are wrong as they are not protocols. d is not a distributed object protocol. answer is c. 6. A "Singleton" is a design pattern, which states
that a class has only one instance, with global access
to it, Given an Order Entity EJB, which of the
following is a Singleton
a) Orderitem
b) OrderBean
c) OrderRemote
d) Order
the question is clear enough. b represents the bean class, c represent the Remote interface. what does a and d represent? 7. Which middle ware solution is BEST fit when
anonymously accessing the server under the firewalls
of Internet.
a) RMI
b) Servelets
c) CORBA
d) EJBs
a is eliminated as rmi cannot pass thru firewall. d is also eliminated as ejb servers run on their specific port which will not be allowed to pass thru due to firewall. I am not sure of c but I think even c is wrong. As servlets use http and http is usually allowed to pass thru firewalls, b seems the ideal choice. 8.A reference to an EJB can be stored by a client for later use by:
a) serializing the EJBObject to disk
b) Adding the object to the server's pooled objects
c) implementing a find<method> for the bean
d) storing the Handle of the EJB for the bean object
I think it should be d 9. What manner a developer define asynchronous method in CORBA
a) outKeyword in IDL
b) asynchronousKeyword in IDL
c) nowaitKeyword in IDL
d) onewayKeyword in IDL
e) any one method of a void return types,does only
input parameters and throws no exceptions.
not sure 10.A developer successfully creating and tests a stateful bean following deployment, intermittent "NullpointerException" begin to occur, particularly when the server is hardly loaded. What most likely to related problem.
a) setSessionContext
b) ejbCreate
c) ejbPassivate
d) beforeCompletion
e) ejbLoad
the answer could be a as the SessionContext object could be null. 11. 2 programs are there- and running concurrently.
Both will select multiple rows from the table. No
table updates can occur while the 2 programs are
running. Which isolation can provide BEST performance
while priventing conflicts?
a) TRANSACTION-NO
b) TRANSACTION-READ-UNCOMMITTED
c) TRANSACTION-READ-COMMITTED
d) TRANSACTION-REPEATABLE-READ
e) TRANSACTION-SERIALIZABLE
e would have been the best isolation level but it not the BEST performant isolation level.