If you are maintaining Java applications that you built with Java 8 or earlier, you should consider updating your application to the modern Java platform. Because the post-Java 8 platform is significantly different from earlier versions, a purposeful approach is warranted in migrating your apps. 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.
Migration planning
Testing a simple Java application
The following code consists of a single Java class, GeneratePassword. This class prompts the user for the desired password length and then generates a password based on the user's requested length...