Home > Articles

  • Print
  • + Share This
Like this article? We recommend

Statement Creation

Now that we have a brand new database, we can start to manipulate it. Before doing this, an object of the class Statement must be instantiated, as illustrated in Listing 8.

Listing 8 Making a statement

Statement s = conn.createStatement();

Notice that the Statement object in Listing 8 uses the Connection object. In a sense, the Statement object talks to the Connection. The Connection object, in turn, talks to the Derby database.

  • + Share This
  • 🔖 Save To Your Account