java - how can we call JDBC code function from another application? -


How can we call the JDBC code function from other applications? So that we do not have to write the JDBC code repeatedly

Just put it in the classpath (if distributed Jar is required in the taste of the file) and import .

This problem is not particularly related to JDBC, but in general it is only in Java. To reuse the code, you need to do all that is in the room and import the appropriate class and call the appropriate method.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -