JAVA连接ORACLE数据库方法及测试
importjava.sql.*;publicclassBc{//声明数据库地址及驱动privateConnectionconn=null;privateStringurl="jdbc:oracle:thin:@localhost:1521:ORCL";privateStringdriver="oracle.jdbc.driver.OracleDriver";privateStringuser="www";privateStringpassword="www";//主函数publicsta