Author: Seymour

Java Keyword Double

The reserved keyword double is used in Java to declared a variable as a numeric type. The double is one of the eight Java primitive data types. The double data type is a double-precision 64 bit IEEE 754 floating

Java Keyword Do

The reserved keyword do is commonly used in conjunction with a do-while loop. The do – while loop always execute the statements in its body at least one time, even if the condition is false from start. Let’s start

Java Keyword Default

The reserved keyword default is most commonly used in a switch statement to label a block of statements to be executed if no case matches the specified value. If the variable fed to switch did not match one of

Java Keyword Continue

The reserved keyword continue is used to stop executing the current iteration within a for loop or a while loop. Everything below the continue will not be executed and the execution will jump back up to the next iteration

Java Keyword Catch

The reserved keyword catch is used in combination with a try block and optionally the finally block. The statements in the catch block specify what to do if a specific type of exception is thrown by the try block.

Java Keyword Class

The reserved keyword class is used to declare a Java class. A class is a type that defines the implementation of an object. A class definition defines fields and methods, and inner classes. The class keyword can also be

Java Keyword Char

The reserved keyword char is used to declared a variable as a character type. A char variable represents a single character. Let’s declare a char variable and assign it the letter ‘J’. Since this is a single character, you

Java Keyword Final

The reserved keyword final is used in several different contexts in the Java Programming Language. The final is a non-access modifier for Java elements. The final modifier is used for finalizing the implementations of classes, methods, and variables. What

Java 8 Stream peek Sample

Java 8 Stream peek method will return a stream consisting of the elements of this stream, additionally performing the provided action on each element as elements are consumed from the resulting stream. The peek() method is an intermediate operation,

Java 8 Stream flatMap Sample

Java 8 Stream flatMap method will return a stream consisting of the results of replacing each element of this stream with the contents of a mapped stream produced by applying the provided mapping function to each element. In simpler