Page 1 of 1
About Question enthuware.ocpjp.v8.2.1767 :
Posted: Thu Nov 22, 2018 3:44 pm
by Standalone
Code: Select all
Properties p = new Properties();
p.setProperty("user", userid);
p.setProperty("password", pwd);
Connection c = DriverManager.getConnection(dburl);
c.setClientInfo(p);
c.connect();
The second option shows the above code and says "There is no setClientInfo or connect method in Connection.", but when I paste it into my IDE c.setClientInfo(p) compiles just fine.
Is this a mistake?
Re: About Question enthuware.ocpjp.v8.2.1767 :
Posted: Thu Nov 22, 2018 9:05 pm
by admin
Yes, you are right. That's a mistake. The explanation should just say there is no connect method in Connection. Fixed.
thank you for your feedback!