Site MapHelpFeedbackChapter Summary
Chapter Summary
(See related pages)

  • The three basic components of a Java program are comments, import statements, and class declarations.
  • A Java program must have one class designated as the main class. The designated main class must have the main method.
  • An object must be declared and created before we can use it.
  • To command an object or a class to perform a task, we send a message to it. We use the expression "calling a method" synonymously with "sending a message."
  • A single name can be used to refer to different objects (of the same class) at different times. An object with no reference will be returned to a system.
  • We follow the edit-compile-run cycle to execute programs.
  • A source file is compiled into a bytecode file by a Java compiler.
  • A Java interpreter (also called a Java Virtual Machine) executes the bytecode.
  • The standard classes introduced in this chapter are
  • JFrame SimpleDateFormat
    JOptionPane String
    Date  
  • Table 2.2 lists the Java naming convention.
  • <a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif:: ::/sites/dl/free/0072518847/82891/table2_2.gif','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (69.0K)</a>







Java3eOnline Learning Center

Home > Chapter 2 > Chapter Summary