To connect to a database, OceanBase Connector/J first creates a Connection object and then creates a Statement object.
The Connection object uses the createStatement method to return a Statement object.
Here is an example of creating a Statement object:
Statement st = conn.createStatement();