I am making Java 1.6-JDBC-Oracle 11 code. I created a table called employee with id,name and age. I am getting the error - ORA-00911: invalid character. How can I fix this ?
Try removing the semi colon from the end of your SQL statement.
ie
static String query = "SELECT emp_id, emp_name, emp_age " + "FROM employee"; // no trailing ";" in the SQL