basta fare cosi':

PreparedStatement pstmt=con.prepareStatement("INSERT INTO conferma (Nome,password) VALUES(?,?)");