1.

Which of the following methods hits database always?(a) load()(b) loadDatabase()(c) getDatabase()(d) get()The question was posed to me during an internship interview.I'd like to ask this question from Hibernate in chapter Autoboxing & Miscellaneous of Java

Answer»

Correct choice is (d) GET()

The explanation is: get() method hits DATABASE ALWAYS. Also, get() method does not return proxy OBJECT.



Discussion

No Comment Found

Related InterviewSolutions