Lecture39 - Java Programming, 3e Concepts and Techniques...

Info iconThis preview shows pages 1–13. Sign up to view the full content.

View Full Document Right Arrow Icon
Java Programming, 3e Concepts and Techniques Review (II) ICTN 2730 Lecture 39 04/25/2008
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Assignments Quiz 4, covering chapters 7-8, will be available on Blackboard from 7 pm Friday, April 25 till 9 pm Sunday, April 27. The final exam, covering chapters 1-8, will be held Wednesday, May 7 at 8:30 am in SZ C309. Please bring a #2 pencil and a blue bubble sheet. Please check lecture 38 for a quick review of Chapters 7-8
Background image of page 2
3 Console Applications Stand-alone programs using a command- line interface
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Windowed Applications Stand-alone programs using a graphical user interface (GUI)
Background image of page 4
5 Applets Client-side programs executed as part of a displayed Web page
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 Program Development Cycle
Background image of page 6
7 Features of the J2SE The Java Compiler Converts code into bytecode e.g. javac Stock1.java The Java Virtual Machine Contains an interpreter to execute the bytecode e.g. java Calculator The Java API The standard set of packages available in Java The Java Applet Viewer Mini browser to display Java applets e.g. appletviewer PalindromeApplet.html
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8 Coding the Program - Comments as Documentation
Background image of page 8
9 Coding the Program - The Class Header Identify how the code can be accessed with an access modifier public indicates that the code can be accessed by all objects in the program and can be extended for a subclass Specify a unique name for the class The class name at the beginning of the program must match the file name exactly Java is case-sensitive By convention, uppercase letters are used for class names and to distinguish words in class names
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10 Coding the Program - The Method Header The method header contains modifiers, return value, method name, and parameters along with their data type Every stand-alone Java application must contain a main() method, which is the starting point during execution. This is not true for Java applets.
Background image of page 10
11 Coding the Program - The Method Header
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
12 Coding the Program - The Method Header Modifiers set properties for a method public allows other programs to invoke this method static means this method is unique and can be invoked without creating a subclass or instance Return value is the data type of the data returned by the method If no data is returned, the keyword void is used Parameters are pieces of data received by the method to help the method perform its operation Identifiers are used to name the variable sent to the method
Background image of page 12
Image of page 13
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/29/2008 for the course ICTN 2730 taught by Professor Li during the Spring '08 term at East Carolina University .

Page1 / 42

Lecture39 - Java Programming, 3e Concepts and Techniques...

This preview shows document pages 1 - 13. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online