Method parameters act as variables specified after method’s name within parentheses and are used to initialize values of primitive and non-primitive data types.
What are Java Booleans?
Boolean refers to a primitive data type that comprises two return values i.e., “true” or “false” and to declare a boolean in Java, “boolean” keyword is used.
How to Use the XOR Operator in Java
XOR in Java is a bitwise operator that takes two boolean operands and returns true or 1 if they are different whereas on same operands, it returns false or 0.
How to Use the Java return Keyword
The Java “return” keyword is used to complete the method’s execution and can be used by the method to return a value or to not return any value at all.
What is CompletableFuture in Java
CompletableFuture is a class in Java that acts as a container that comprises the result of an asynchronous operation being executed on a separate thread.
How to Use String trim() Method in Java
The String “trim()” method removes the whitespaces from both ends i.e., leading and trailing of the string without making changes to the original string
How to Use DecimalFormat Class in Java
DecimalFormat is a subclass of “NumberFormat” class in Java that formats decimal numbers using specific formatting pattern. These patterns can be “#”, “.”, “,”.
How to Use Break and Continue in Java
The “break” statement is used to terminate a loop immediately whereas the “continue” statement skips current loop iteration and continues the rest of iteration.