Java Statement Interface
Statement Interface sits in JDBC — Java talking to a database with SQL. Five steps: driver → Connection → Statement/PreparedStatement → ResultSet → close (try-with-resources).
For Statement Interface — prefer PreparedStatement. Never paste user input into SQL with +. That is SQL injection.
Statement Interface session: connection URL, user, and password. ResultSet is read row by row with next(). Close everything when done.
Let's take this on the board with one tiny Main class — no extra files. Output: Asha scored 72 then Pass. Real Main. Swap marks/name to show one idea from Java Statement Interface. Start from main, go line by line, and stop at each print. That output is the proof for Statement Interface.
Explain Java Statement Interface as: definition → why → one code idea.