Java has been around for over two decades now. For the most part of its lifetime, there have been a few things that haven't changed. Let's focus our attention on two aspects of the JDK the way they were in Java 8 or earlier:
- The JRE structure: The file and directory structure that Java Runtime Environment (JRE) is installed as when it is set up on a computer
- The state of API encapsulation: The differences between the public Java APIs and the internal platform classes
When you install the Java 8 Runtime Environment on any machine and examine the installed directory, you'll see, among other files and folders, the following two important directories:
- A
bin
directory with executable files, an important one of which is the Java executable that lets you run Java programs - The
lib
directory with some key.jar
files including the all-importantrt.jar
You may not have had to deal with the rt.jar
directly when coding in Java, but you should know that it's the single...