• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why ResultSet's index Starts with '1' instead of zero?  RSS feed

 
Siva Arun
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java used zero based indexing mechanism except JDBC. Is their any specific reason in the JDBC design to use non zero based indexing?
 
Jan Cumps
Bartender
Posts: 2628
17
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They must have used the terminology of the relational database theory.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!