Java Reference
In-Depth Information
CHAPTER
2
C reating a J ava A pplication
and A pplet
Objectives
You will have
mastered the material in
this chapter when you can:
• Write a simple Java application
• Use TextPad
• Understand the different types and uses of comments
• Use proper naming conventions for classes and files
• Identify the parts of a class header and method header
• Code output
• Use the println() method
• Compile a Java program
• Understand the common types of errors
• Run a Java program
• Edit Java source code to insert escape characters and a system date
• Print source code
• Differentiate between an application and an applet
• Create an applet from Java source code
• Write code to display a graphic, text, color, and the date in an applet
• Create an HTML host document
• Run a Java applet
Search WWH ::




Custom Search