Java-SQL method calls

Description

To invoke a Java-SQL method, which returns a single value, use the following syntax:

Syntax

method_call ::= member_reference ([parameters])
	|  new  java_sql_class_name ([parameters])
parameters ::= parameter [(, parameter)...]
parameter ::= expression

Parameters

method_call

An invocation of a static method, instance method, or class constructor. A method call can be used in an expression where a non-constant value of the method’s datatype is required.

member_reference

A member reference that denotes a method.

parameters

The list of parameters to be passed to the method. If there are no parameters, include empty parentheses.

Usage


Method overloading


Datatype of method calls


Runtime results