خوب کد زیر همین کارا میکنه دیگه
  ResultSet sr = st.executeQuery("select * from T_Film");
sr.last();