getBoolean(String str) and valueOf(String str) of Boolean class gives different output

                                     The API-documentation is your friend.

  • Boolean.getBoolean probably doesn’t do what you think it does:

    Returns true if and only if the system property named by the argument exists and is equal to the string “true”.

  • Boolean.valueOf is probably what you’re looking for:

    The Boolean returned represents the value true if the string argument is not null and is equal, ignoring case, to the string “true”.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)