Tutorial :how can we call JDBC code function from another application?



Question:

how can we call JDBC code function from another application? so that we don't need to write JDBC code again and again


Solution:1

Just put it in the classpath (if necessary in flavor of a distributed JAR file) and import it.

This problem is not specifically related to JDBC, but just to Java in general. To reuse code, all you need to do is to have it in classpath and import the appropriate class and call the appropriate method.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »