JDBC- Implementation of interfaces

后端 未结 5 1095
青春惊慌失措
青春惊慌失措 2020-11-29 13:53

In JDBC, to connect and execute statements in DB we mainly make use of Connection,Statement and ResultSet which are interfaces. But their corresponding objects is later use

5条回答
  •  难免孤独
    2020-11-29 14:43

    You can't instantiate an interface class. You'll have either implement that interface yourself or use Proxy to create an instance of said interface that will delegate all calls to provided InvocationHandler.

提交回复
热议问题