The booleanValue()  method of Java Boolean class returns a Boolean value for the specified Boolean argument.

 Syntax

public Boolean booleanValue()

 Parameters

NA

Return Value

This method returns the primitive value of specified Boolean object.

Example 1

Output

Example2:

Output:

Example 3

Output

Pin It on Pinterest

Share This