Codekru

Boolean.logicalOr() method in Java

logicalOr() method performs the logical OR operation between two boolean values. It’s a static method and was introduced in Java 1.8. This post will discuss the logicalOr() method of the Boolean wrapper class in detail. Method declaration – public static boolean logicalOr(boolean a, boolean b) What does it do? logicalOr() method takes two boolean arguments and performs the logical OR operation. What

Boolean.logicalOr() method in Java Read More »

Boolean Wrapper Class in Java

Wrapper classes in Java help perform object operations that we normally cannot perform with primitive types. This post will discuss one such wrapper class, which wraps the boolean primitive value and helps us perform object operations whenever needed. Here, we are talking about the Boolean wrapper class of Java. The Boolean class is present in java.lang package.

Boolean Wrapper Class in Java Read More »