Keywords are words to which Java attributes special meanings. Three such keywords appear in the example.
*-- Keywords | v ------------------ public static void main (String argv[]) { 6 + 9 + 8; }
public
indicates how accessible the main
method is to be. You learn more about the public
keyword in
Chapter 15.
static
indicates that the main
method is a
class method, rather than an instance method. You learn
about this distinction in Chapter 10.
void
indicates that the main
method returns no
value. You learn more about the void
keyword in
Chapter 5.
You should accept the use of the three keywords as ritual for now. You will come to understand the ritual as you study the language.