For inserting to DB you can’t use stmt.executeQuery method, you must use stmt.executeUpdate( sqlStatment ).Meanwhile you must commit any changes in Oracle ,you can do it with stmt.executeUpdate( “commit” ) or you can set auto commit to true. You can do it with this instruction conn.setAutoCommit(true).please check its syntax.
I hope this can help you, let me know if you have any problem.