Hey! i have this code but i'm getting
i edited my code,made the changes but now i'm getting error-unreported exception ClassNotFounfException must be caught or declared to be thrown Class.forName("oracle.jdbc.OracleDriver")
same error for st.close() , ps.close() and rs.close()
Class.forName() method throws the ClassNotFoundException. Your code clearly haven't cater this. SQLException and ClassNotFoundException are2 difrerent exceptions. If you also do Class.forName(...).newInstance() then you will also need to catch InstantiationException and IllegalAccessException.