create statement in jdbc
After succesfully created the connect next step is STATEMENT
import java.sql.Statement;
Statement statement = connection.createStatement();
-We use createStatement() method to create the statement from our connection.
-The result we get from this type of statement can only move from top to bottom,
not other way around
OR
We can create
Statement statement = connection.createStatement(ResultSet TYPE_SCROLL_INSENSITIVE
,ResultSet CONCUR_READ_ONLY);
-The result we get from this type of statement can freely move between rows