Detailed from the javadoc:
Returns a
Boolean instance representing the specified boolean value. If the specified boolean value is true, this method returns Boolean.TRUE; if it is false, this method returns Boolean.FALSE.
Parameters:
b - a boolean value.
Returns:
a Boolean instance representing b.
Returns a Boolean with a value represented by the specified
String. The Boolean returned represents the value true if the string argument is not null and is equal, ignoring case, to the string "true".
Example: Boolean.valueOf("True") returns true.
Example: Boolean.valueOf("yes") returns false.
Parameters:
s - a string.
Returns:
the Boolean value represented by the string.
And since the second method does not return an instance, it is recommended to be used instead of constructor Boolean(String value).