Following the name of the class, Demonstrate
, you come to the
body of the class definition. In the example,
the body contains a single method definitionthe one for the
main
methodwhich computes the rating of a movie, given ratings
for the movie's script, acting, and direction.
public class Demonstrate { public static void main (String argv[]) { 6 + 9 + 8; } }