Home » JDK8

Tag Archives: JDK8

Java Compiler Example

In this article, we’re going to see how the Java compiler works. Also, we’ll use an example to understand the compiler steps from the language to bytecode. 1. Introduction In computation, the compilation is a process of converting the source code into machine language (bytecode). To clarify, a compiler will take our source code written in natural human language and ...

Read More »

Download and Install Java Development Kit (JDK) 8

In this article, we will discuss the step-by-step process to download and install JDK (Java Development Kit) 8 in your machine and then compile and execute a java program from the command prompt. 1. Java 8 Download 1.1 Go to the jdk site To download Java 8, go to the site JDK 8. Go to the link, and you will ...

Read More »

Java 8 Date and Time API Tutorial

JDK 1.0 had java.util.Date class giving access to Java’s first Date API. However soon after its usage, it started to show cracks of problems on its brittle surface. It did not take any longer to realize that java.util.Date was not thread-safe!                   Table Of Contents 1 . Introduction 2. The new Date ...

Read More »

Java Functional Interface Example

In this post, we present a detailed article about Functional Interfaces in Java 8. Java functional interface has only one abstract method. The interface will have only one behavior. Java 8 has lambda expressions. Lambda expression is used for functional interface instance. A java functional interface has many default methods. Runnable, Callable, ActionListener, Comparable, and FileFilter are good examples of ...

Read More »