JavaBeans Interview Questions | Snaprecruit.com
JavaBeans Interview Questions | Snaprecruit.com
JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing
Enterprises
JavaBeans interview questions
JavaBeans interview questions
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 15
1. What does the EJB specification architecture define ?
A. Transactional components
B. Distributed object components
C. Server-side components
D. All of the above
Show Correct Answer
Correct Answer is :
All of the above
2. What executes EJB components ?
A. A web server
B. An application server
C. An EJB container
D. A database server
Show Correct Answer
Correct Answer is :
An EJB container
3. What do enterprise beans use to communicate with the EJB container to get runtime context information ?
A. The javax.ejb.EJBContext provided by the container
B. A JNDI ENC context
C. A javax.ejb.EJBHome object provided by the container
D. A javax.ejb.EJBMetaData object provided by the container
Show Correct Answer
Correct Answer is :
The javax.ejb.EJBContext provided by the container
4. Through what interface does an application create, find, and remove enterprise beans ?
A. java.rmi.Remote
B. javax.ejb.EJBHome
C. javax.ejb.EJBObject
D. javax.ejb.EntityBean
Show Correct Answer
Correct Answer is :
javax.ejb.EJBHome
5. What type of enterprise bean is used to embody business objects ?
A. javax.ejb.EnterpriseBean
B. java.rmi.Remote
C. javax.ejb.SessionBean
D. javax.ejb.EntityBean
Show Correct Answer
Correct Answer is :
javax.ejb.EntityBean
6. Which of the following is not an Enterprise Beans type?
A. Doubleton
B. Singleton
C. Stateful
D. Stateless
Show Correct Answer
Correct Answer is :
Doubleton
7. Which of the following is not true about Java beans?
A. Implements java.io.Serializable interface
B. Extends java.io.Serializable class
C. Provides no argument constructor
D. Provides setter and getter methods for its properties
Show Correct Answer
Correct Answer is :
Extends java.io.Serializable class
8. Which file separator should be used by MANIFEST file?
A. /
B. \
C. –
D. //
Show Correct Answer
Correct Answer is :
/
9. Which of the following is correct error when loading JAR file with duplicate name?
A. java.io.NullPointerException
B. java.lang.ClassNotFound
C. java.lang.ClassFormatError
D. java.lang.DuplicateClassError
Show Correct Answer
Correct Answer is :
java.lang.ClassFormatError
10. Java Beans are extremely secured?
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
11. Which of the following is not a feature of Beans?
A. Introspection
B. Events
C. Persistence
D. Serialization
Show Correct Answer
Correct Answer is :
Serialization
12. What is the attribute of java bean to specify scope of bean to have single instance per Spring IOC?
A. prototype
B. singleton
C. request
D. session
Show Correct Answer
Correct Answer is :
singleton
13. Which attribute is used to specify initialization method?
A. init
B. init-method
C. initialization
D. initialization-method
Show Correct Answer
Correct Answer is :
init-method
14. Which attribute is used to specify destroy method?
A. destroy
B. destroy-method
C. destruction
D. destruction-method
Show Correct Answer
Correct Answer is :
destroy-method
15. How to specify autowiring by name?
A. @Qualifier
B. @Type
C. @Constructor
D. @Name
Show Correct Answer
Correct Answer is :
@Qualifier
Similar Interview Questions
Search for latest jobs
Find Jobs