interface « Statement « Java Database Q&A





1. Why is java.sql.Statement an interface and not an abstract class?    stackoverflow.com

Why is java.sql.Statement an interface and not an abstract class? Some arrogant interviewer rejected a candidate because he didn't know.

2. how can we use prepare statement in jdbc since it is an interface    stackoverflow.com

In JDBC except DriverManager all are interfaces. How are we able to use the interfaces such as, PrepareStatement, Connection etc.?

3. Statement is an interface?    coderanch.com

Have a look at the "Factory" pattern. It can have a series of interfaces that define specific behaviors, with the implementations provided by a factory class. In this case the object handle is declared using the type of interface needed. The instance is received from the Connection class via one of its methods: createStatement(), prepareCall() or prepareStatement(). Considering the tight coupling ...

4. JDBC - Statement is an interface?    coderanch.com

6. Statement, an interface ?    coderanch.com

7. java.sql - Interface Statement    forums.oracle.com