1. Java Programming: From Problem Analysis to Program Design, 3e Chapter 2 Basic Elements of Java 2. Chapter Objectives Become familiar with the basic components of a Java…