Author: Seymour

Java Keyword Throws

The reserved keyword throws is one of the reserved keywords that you can’t use as a variable name in your Java application. We just talked about the very similar Java keyword throw, which is not the same keyword, but

Java Keyword Throw

The reserved keyword throw is one of the reserved keywords that you can’t use as a variable name in your Java program or application. Although very similar, throw is not the same as throws. Two different keywords with two

Java Keyword Volatile

The reserved keyword volatile is one of the reserved keywords that you can’t use as a variable name in your Java program or application. The keyword volatile in the Java programming is used to identify a variable as being

Java Keyword New

The Java Programming Language reserves a specific list of keywords that are not allowed to be used as variable names when writing Java programs. The reserved keyword new is one of those words. The keyword new in Java programming

Java 8 Iterate Over HashMap

You have a few options in dealing with HashMap with the introduction of Java 8 Streams and Lambda Expressions. Prior to Java 8, iterating over HashMap was exclusively done with a for loop. The Stream.forEach() method has replaced that

Java 8 Stream toArray Sample

Java 8 Stream toArray operation will return an array containing the elements of the Stream. Th Steam can be Integer, String, Char, or any other Java primitive data type. The Stream.toArray() has the following syntax: Object toArray() toArray() Stream

Java 8 Stream findAny Sample

Java 8 Stream findAny operation, which is very intuitive, will find any element from a given Stream. To be used when you are looking for an element without concern for the encounter order. The behavior of findAny() is nondeterministic,

Java 8 Stream findFirst Sample

Java 8 Stream findFirst operation is pretty straight forward in that it finds and returns the first element in the Stream. The Stream.findFirst() operation states that if the stream has no encounter order, any element may be returned. The

Java Programming Language

The Java technology is both a platform and a programming language. Java is considered a high level programming language. A high level programming language is a language with strong abstraction from the details of the computer that it’s running