3.1: HelloWorld.java
3.1.1: Class and File Naming Conventions
Please read through the first three pages of this chapter. These three pages discuss the naming conventions as well as the reserved words in Java programming language. If you wrote the Hello.java program as mentioned in sub-subunit 1.3.5.2, then this section might be a little review for you.
3.1.2: Importing Libraries
Please read this article. Java classes and interfaces can be organized into packages to group related types and for name-space management.
3.1.3: Declaring a Class
You first encountered this chapter in sub-subunit 3.1.1. Continue reading this chapter from page 4 to the end. Alternatively, you may decide to read the entire chapter, reviewing pages 1 - 3. The chapter discusses common syntax errors in Java as well as guidelines to fix those errors. The last section of this chapter provides instructions on adding comments inside Java code.
Please think of the appropriate answer to fill in the blank for each question.
3.1.4: Compiling and Executing a Java Program
Please read through the chapter and follow all the steps. This chapter provides step-by-step instructions of writing a Java program using Notepad and then compiling and running this program from command prompt. We can also use NetBeans for writing the same program.
Please complete the fill in the blank exercise. Think of the appropriate response to fill in the blanks.