Objective Java Multiple Choice Questions Part 7 | URDINESH

Software Programming, Tutorials, Interview Preparations,Stock Market,BSE/NSE, General informations

Friday, May 23, 2014

Objective Java Multiple Choice Questions Part 7


        @Table
Public class entitybean {
}
What will the table name for this snippet?
       Same as the class name (i.e. entitybean)
       Null
       None
       Entity

62.  For which option use of EJB not preferred
       Fast processiong
       Transacion processing
       Security maintenance
       Content presentation

63 . EJBHomeFactory pattern is used for
       EJBHome implementation dynamically
       Satatic home obj lookups
       Catching EJBHome Objects
       Factory of EJBHome obj catched for future ref

64.  SELECT ac FROM acct AS ac WHERE id in(1,2)
       Selects id at position 1
       Selects id at position 2
       Selects id at position 1 or postion 2

65.  Default value of @Entity
       CMP
       BMP
       Entity

66. 17. Messages uses ___ protocol and RMI uses ____  protocol
       TCP and RMI-IIOP
       TCP/IP and RMI-IIOP
       RMI and TCP
       RMI-IIOP and TCP


67. How to limit flush to only after the execution is complete
       setFlushMode(FlushModeType.COMMIT)
       setFlush(FlushModeType.COMMIT)
       None

68.  Methods of a MDB interface
       ejbCreate() and setMessageDrivenContext()
       ejbRemove() and setMessageDrivenContext()
       ejbactivate() and setMessageDrivenContext()
       ejbpassivate() and setMessageDrivenContext()

69.  What type of bean can be used for records that are read and updated frequently
       BMP
       CMP
       Stateful
       Sateless

70.  SELECT NEW ejb.30.entity.CustomerRef(c.firstname,c.lastname,c.refreename) FROM C

       Creates a new CustomerRef object and puts the firstname lastname and refreename to it
       Illegal
       Null
       Returns a collection of CustomerRef, which contains first name, lastname and refreename of all rows –


No comments:

Post a Comment

Thanks for your valuable comments

Followers