employer cover photo
employer logo

Pergunta de entrevista da empresa Opower

What classes would be required to retrieve a String from a database?

Resposta da entrevista

Sigiloso

19 de jul. de 2010

It depends on the way you manage the interaction with the database, in case of ORM like hibernate you will need the hibernate libraries to be included in the project, your mappings, classes and your dao objects. But in the traditional way, I mean JDBC, the classes needed are in the java.sql package and are Connection, Statement, DriverManager, ResultSet and of course you will need to include you JDBC Driver in the libs of your project.

3