Hi,
assuming your column name is empno, the query would look like
Statement stmt = null;
ResultSet rs = null;
String strSql = "select count(empno) from emp";
rs = stmt.executeQuery(strSql);
int empCount = Integer.parseInt(rs.getString(1));
This should help!!
bye
shri