Week 6 Sample questions Flashcards
The ________ method is called when the servlet is first created, and is not called again
as long as the servlet is not destroyed.
Init
The Data Access Object pattern (DAO) ___________________________.
a) helps with the design of GUI programs.
b) abstracts the database access logic out of a domain class
c) is a Gang of Four patterns
d) is a simple way of creating a data access component
b) Abstracts the database access logic out of a domain class.
Which of the following are NOT interfaces?
a) DriverManager
b) Connection
c) ResultSet
d) Statement
a) DriverManager is not an interface!
Java data types are the same as the data types used in the database.
a) True
b) False
b) False
There IS overlap, but they are not the same
Design patterns ____________.
a) are proven ways for implementing behavior that help increase cohesion and reduce
coupling.
b) are elegant ways for writing code
c) cannot be implemented in Java.
d) only apply to C++
a) Are proven ways for implementing behavior that helps increase cohesion and reduce coupling