Small Java Programs

This chapter discusses naming and coding conventions as well as reserved words in Java. When you go through this chapter, you'll get some hands-on experience with writing in Java.

1. Small Java Programs

The previous chapter discussed the mechanics of creating and running a Java program. This chapter is an overview of Java using the previous example program.

Chapter Topics:

        • Small example programs
        • Names for source files and class files
        • Syntax errors
        • Bugs
        • The Edit, Compile, and Run cycle
        • Matching braces
        • Neat indenting

Question 1:

(Review:) What is the role of each of the following files?

  • Source code file
  • Bytecode file

Source: Bradley Kjell,
Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 License.