package Beans;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.loggin
I am bit doubted about your query as well, you might need to look at this
CREATE TABLE `test1` ( contact_id INT(10),name VARCHAR(40),
birthdate DATE,PRIMARY KEY (contact_id));
If the update happens correctly then the value is 1, if not its 0. Moreover, it return 0 when your statement does not affect any row , for example in DDL execution it may return 0.