Upgrade to Java SE 7 Programmer (1Z0-805)
© examsiri.com
Question : 6 of 7
Marks:
+1,
-0
Given this code fragment:
/* assume "myURL" is a valid URL*/
/* assume that the initial value of a saving account is 0*/
try {
 Connection conn = DriverManager.getConnection(myURL);
 Statement s = conn.createStatement();
 /* execute SQL to add 100 to the account*/
 /* execute more SQL to add 300 to the account*/
 conn.commit();
} catch (Exception e) {
 e.printStackTrace();
} What is the result?
Go to Question: