Migration planning
The changes to the Java platform are significant and Java 9 is considered a major release. It would be naive to think our current Java applications will work seamlessly on Java 9. While that might be the case, at least for simple programs, it is prudent to plan ahead and consider the issues you are most likely to encounter. Before we look at these issues, let's test a simple Java application in the next section.
Testing a simple Java application
The following code consists of a single Java class, GeneratePassword.
This class prompts the user for a desired password length and then generates a password based on the user's requested length. If the user asks for a length shorter than 8, the default length of 8 will be used. This code was written with the Java SE 1.7 JRE System Library:
/* * This is a simple password generation app */ import java.util.Scanner; public class GeneratePassword { public static void main(String[] args) { ...