Deloitte Interview Question

Write code foe jdbc connection.

Interview Answer

Anonymous

Aug 30, 2018

String jdbc ="jdbc:mysql://LocalhostdetailsanddatabasenameuseSSL=false&serverTimezone=UTC"; String username=""; String password=""; try{ Connection conn = DriverManager.getConnection(jdbc,username,password); } catch(exception exc){ exc.printstacktrace(); }