Java execution permissions – like all Java classes in the database, classes containing JDBC statements can be accessed by any user. There is no equivalent of the grant execute statement that grants permission to execute procedures in Java methods, and there is no need to qualify the name of a class with the name of its owner.
SQL execution permissions – Java classes are executed with the permissions of the connection executing them. This behavior is different from that of stored procedures, which execute with granted permission by the database owner.