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