Java Programming/Keywords/boolean

is a keyword which designates the primitive type. There are only two possible values:  and. The default value for fields is.

The following is a declaration of a  field named , and its use in a method named.

The previous code only creates a connection once (at the first method call). Note that there is no automatic conversion between integer types (such as ) to as is possible in some languages like C. Instead, one must use an equivalent expression such as  which evaluates to  if   is not zero.