PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which of the following actions will result when the above code is executed?

Consider the following Java code (assume all necessary import statements are defined):
DataSource ds;
try {
ctx = new InitialContext();
ds = (DataSource) ctx.lookup(“EmployeeDatabase”);
Connection con = ds.getConnection(“EmployeeDatabase”, “userid”, “password”);
}
catch (Exception ne)
{
System.out.println(“There was an Exception!”);
}
Which of the following actions will result when the above code is executed?


Page 57 of 263« First...102030...5556575859...708090...Last »