Advanced Java Programming20805 marksJDBC Architecture, JDBC Driver Types, JDBC Configuration, Ma
Describe the role of Result Sets. What is wrong in the following code? ```java public class Point { int p; public void setP(int p) { p = p; } } ```
Describe the role of Result Sets. What is wrong in the following code?
public class Point {
int p;
public void setP(int p) {
p = p;
}
}
[5]
--- A Result Set in Java (specifically java.sql.ResultSet) represents the result of a database query. It acts as a cursor that points to the data returned from executing a SQL SELECT statement via JDBC. Role Description ------------------- Data Retrieval Holds the rows returned by a SQL query fro...