Basic HTML version of Foils prepared October 30 1999

Foil 6 Order of Execution

From Short Introduction to Kids on Basic Programming Concepts in Java Sonia Kovalesky festival workshop (High School Girls) -- October 23 1999. by Nancy McCracken


Also note that the statements on the previous page are computed in the order that you list them. This is true within each method. A Java program is a collection of methods - each is "called" to compute its statements.
public class MyApplet extends Applet
{ public void init ( )
{
/* statement1 */
/* statement2 */
. . .
/* last statement */
}
public void paint ( )
{ /* statements go here */ }
public void helpermethod ( )
{ /* statements go here */ }
}



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Oct 30 1999