Now i m learning ResultSet types in
java. Here, I've coded for viewing records in different ways.... At first i displayed the whole records which is in emp4 table and then i started to view these records in different manner(last,first,next) This is exactly what i am looking for but it won't display the all records which are presented in the emp4 table. See the First Program it doesn't work but if i documented the line 41(see this in Second Program) it just working awesome.... What's the problem ? is there any wrong with my code ???
CODE SAMPLE 1
Here, the code will works fine.....
CODE SAMPLE 2
OUTPUT
Displaying records for last row
ID : 5
GMAIL : naveen
YAHOO : naveenrockz
Displaying records for first row
ID : 1
GMAIL : vinothvino
YAHOO : vinothasd
Displaying records for next row
ID : 2
GMAIL : ajithvirje
YAHOO : ajith234
Please make me understand.....