I have created a table with id as a primary key.
When I am entering same id again & I am getting following errors:
MySQLIntegrityConstraintViolationException: Duplicate entry
I am catching SQLException:
//Handle errors for JDBC
The control enters into catch block &
Its printing "Testing". So exception is caught. So why i am getting this error. Some body please guide me how to handle this error.