Top 250+ Solved Advanced JAVA MCQ Questions Answer

From 196 to 210 of 223

Q. Navigation in traditional JSF applications is handled by:

a. linking directly linking to a resource

b. commandLink

c. invoking an action

d. all of the mentioned

  • d. all of the mentioned

Q. For cross field validation or some sort of barrier to ensure state before you start aflow, we use.

a. FacesContext

b. FaceletContext

c. FacesResolver

d. All of the mentioned

  • a. FacesContext

Q. Component which additionally provides a pop-up date picker control for its enclosedinput field.

a. clientDateValidator

b. clientValidator

c. dateValidator

d. validator

  • a. clientDateValidator

Q. Component which encloses command button.

a. validateAll

b. validateAllClick

c. validateAllInClick

d. validateAllOnClick

  • c. validateAllInClick

Q. Which of the following is not a core interface of Hibernate?

a. Configuration

b. Criteria

c. SessionManagement

d. Session

  • c. SessionManagement

Q. Which of the following is not a core component of Hibernate?

a. JDBC

b. SessionFactory

c. Session

d. Configuration

  • a. JDBC

Q. Is Session a thread-safe object?

a. True

b. False

c. none

d. all

  • b. False

Q. SessionFactory is a thread-safe object.

a. True

b. False

c. none

d. all

  • a. True

Q. Which of the following methods returns proxy object?

a. loadDatabase()

b. getDatabase()

c. load()

d. get()

  • c. load()

Q. Which of the following methods hits database always?

a. load()

b. loadDatabase()

c. getDatabase()

d. get()

  • d. get()

Q. Which of the following method is used inside session only?

a. merge()

b. update()

c. end()

d. kill()

  • b. update()

Q. The SessionFactory is heavyweight object.

a. False

b. True

c. none

d. all

  • b. True

Q. Which of the following is not a state of object in Hibernate?

a. Attached()

b. Detached()

c. Persistent()

d. Transient()

  • a. Attached()

Q. Which of the following is true about HQL?

a. HQL takes java objects in the same way as SQL takes tables.

b. HQL is a Object Oriented Query language

c. HQL is database independent.

d. All of the above.

  • d. All of the above.

Q. Which of the following is not an inheritance mapping strategies?

a. Table per hierarchy

b. Table per concrete class

c. Table per subclass

d. Table per class

  • d. Table per class
Subscribe Now

Get All Updates & News