| | | | MCQ Tutorial - JAVA->Advance Java Other | | | | 1.) Which is the method available in SessionContext interface? | | Options are: | | A.) setSessionCotext()
| | B.) getRollbackOnly()
| | C.) afterBegin()
| | D.) getUserTransaction()
| | Correct Option: A | | | | | | | 2.) Which statement about session beans is true? | | Options are: | | A.) None of the options are correct
| | B.) The method remove() in the component interface can be accessed only by the remote clients
| | C.) The bean’s handle must be provided by the client, in order to ask the EJBHome for removing a session bean
| | D.) In both stateless and statefull session classes, the bean provider must write the method public void remove()
| | Correct Option: C | | | | | | | 3.) Stateful Session beans contains | | Options are: | | A.) Remote Interface
| | B.) All options are correct
| | C.) Home Interface
| | D.) Bean class
| | Correct Option: B | | | | | | | 4.) Which of the following is not a life-cycle method for a Stateful Session Bean? | | Options are: | | A.) Pre Construction
| | B.) Pre Destruction
| | C.) Post Construction
| | D.) Post Activation
| | Correct Option: A | | | | | | | 5.) From the following APIs, which API does NOT guarantees to be supported by EJB 2.0 containers? | | Options are: | | A.) JAXP
| | B.) JDBC
| | C.) JNDI
| | D.) JXTA
| | Correct Option: D | | | | | | | | | | | |