Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

questions

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
b) Type-2 Native API partly Java Driver
c) Type-3 JDBC-Net pure Java Driver
d) Type-4 Native protocol pure Java Driver
e) Type-5 Standard internet driver
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

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

4. Which of the method names of ejb avail thru' JNDI
a) register()
b) put()
c) bind()
d) store()
e) insert()

5. Select the distributed object protocol from following.
a) RPC
b) CORBA
c) RMI-IIOP
d) RMI-JRMP

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

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

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 for the bean
d) storing the Handle of the EJB for the bean object

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.

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

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic