DB2 10.5 for Linux, UNIX, and Windows

Comments in a JDBC application

To document your JDBC program, you need to include comments. You can use Java™ comments outside of JDBC methods and Java or SQL comments in SQL statement strings.

You can include Java comments outside JDBC methods, wherever the Java language permits them. Within an SQL statement string in a JDBC method call, you can use comments in the following places: