Which design pattern ensures that only one object of particular class gets created?
A. Singleton pattern
B. Filter pattern
C. State pattern
D. Bridge pattern
Select an option to see the answer and solution.
Is design pattern a logical concept.
Select an option to see the answer and solution.
Which of the following is used to call stored procedure?
A. Statement
B. PreparedStatement
C. CallableStatment
D. CalledStatement
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
Which of the below is not a valid classification of design pattern?
A. Creational patterns
B. Structural patterns
C. Behavioural patterns
D. Java patterns
Select an option to see the answer and solution.
Which attribute is used to specify initialization method?
A. init
B. init-method
C. initialization
D. initialization-method
Select an option to see the answer and solution.
Which of the following is advantage of using PreparedStatement in Java?
A. Slow performance
B. Encourages SQL injection
C. Prevents SQL injection
D. More memory usage
Select an option to see the answer and solution.
Which of the below is not a valid design pattern?
A. Singleton
B. Factory
C. Command
D. Java
Select an option to see the answer and solution.
Which of the following is not an Enterprise Beans type?
A. Doubleton
B. Singleton
C. Stateful
D. Stateless
Select an option to see the answer and solution.
Which of the following is not a feature of Beans?
A. Introspection
B. Events
C. Persistence
D. Serialization
Select an option to see the answer and solution.
Which of the following is method of JDBC batch process?
A. setBatch()
B. deleteBatch()
C. removeBatch()
D. addBatch()
Select an option to see the answer and solution.
Which of the following is advantage of using JDBC connection pool?
A. Slow performance
B. Using more memory
C. Using less memory
D. Better performance
Select an option to see the answer and solution.
What does MVC pattern stands for?
A. Mock View Control
B. Model view Controller
C. Mock View Class
D. Model View Class
Select an option to see the answer and solution.
Which design pattern represents a way to access all the objects in a collection?
A. Iterator pattern
B. Facade pattern
C. Builder pattern
D. Bridge pattern
Select an option to see the answer and solution.
Which design pattern suggests multiple classes through which request is passed and multiple but only relevant classes carry out operations on the request?
A. Singleton pattern
B. Chain of responsibility pattern
C. State pattern
D. Bridge pattern
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
Which of the following is used to rollback a JDBC transaction?
A. rollback()
B. rollforward()
C. deleteTransaction()
D. RemoveTransaction()
Select an option to see the answer and solution.
What does setAutoCommit(false) do?
A. commits transaction after each query
B. explicitly commits transaction
C. does not commit transaction automatically after each query
D. never commits transaction
Select an option to see the answer and solution.
Which file separator should be used by MANIFEST file?
Select an option to see the answer and solution.
Which one of the following contains date information?
A. java.sql.TimeStamp
B. java.sql.Time
C. java.io.Time
D. java.io.TimeStamp
Select an option to see the answer and solution.