java.sql.SQLException: not implemented by SQLite JDBC driver in Java Prepared Statement

java.sql.SQLException: not implemented by SQLite JDBC driver in Java Prepared Statement

The problem is simple! You are mixing between Statement and PrepareStatement. Look at the code to fix the problem.

String query= "my query";
PreparedStatement stmtRead = c.prepareStatement(query);
//The executeQuery does not take a query parameter not like a simple Statement
ResultSet resultSet = stmtRead.executeQuery(query);