gs gs128 Java Beans JDBC - Java Beans - Quiz No.1
gs gs128 Java Quiz
This quiz belongs to book/course code gs gs128 Java of gs organization. We have 136 quizzes available related to the book/course Java. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Java Beans JDBC. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
Question 1: Which of the following is not an Enterprise Beans type?
Doubleton
Singleton
Stateful
Stateless
Question 2: Which of the following is not true about Java beans?
Implements java.io.Serializable interface
Extends java.io.Serializable class
Provides no argument constructor
Provides setter and getter methods for its properties
Question 4: Which of the following is correct error when loading JAR file with duplicate name?
java.io.NullPointerException
java.lang.ClassNotFound
java.lang.ClassFormatError
java.lang.DuplicateClassError
Question 6: Which of the following is not a feature of Beans?
Introspection
Events
Persistence
Serialization
Question 7: What is the attribute of java bean to specify scope of bean to have single instance per Spring IOC?
prototype
singleton
request
session
Question 8: Which attribute is used to specify initialization method?
init
init-method
initialization
initialization-method
Question 9: Which attribute is used to specify destroy method?
destroy
destroy-method
destruction
destruction-method
Question 10: How to specify autowiring by name?
@Qualifier
@Type
@Constructor
@Name