February 2014
Beginner
1248 pages
62h 25m
English
Line 4
public class Welcome1
begins a class declaration for class Welcome1. Every Java program consists of at least one class that you (the programmer) define. The class keyword introduces a class declaration and is immediately followed by the class name (Welcome1). Keywords (sometimes called reserved words) are reserved for use by Java and are always spelled with all lowercase letters. The complete list of keywords is shown in Appendix C.
In Chapters 2–7, every class we define begins with the public keyword. For now, we simply require public. You’ll learn more about public and non-public classes in Chapter 8.
Read now
Unlock full access