Here we are going to learn about reason behind the error index out of range.In application we use table for ex a table have two fields.we refer it using ResultSet as rs.getString(1),rs.getString(2) and so on,if you are using rs.getString(3) that is not available but you are referring it so it gives that error these type of common errors needs to be solved by urself to learn quickly.