Skip to Content
Learning Java
book

Learning Java

by Jonathan Knudsen, Patrick Niemeyer
May 2000
Beginner
726 pages
21h 42m
English
O'Reilly Media, Inc.
Content preview from Learning Java

Conventions Used in This Book

The font conventions used in this book are quite simple.

Italic is used for:
  • Unix pathnames, filenames, and program names

  • Internet addresses, such as domain names and URLs

  • New terms where they are defined

Boldface is used for:
  • Names of GUI buttons and menus

Constant width is used for:
  • Anything that might appear in a Java program, including method names, variable names, and class names

  • Command lines and options that should be typed verbatim on the screen

  • Tags that might appear in an HTML document

Constant width bold is used for:
  • In code examples, text that is typed by the user

In the main body of text, we always use a pair of empty parentheses after a method name to distinguish methods from variables and other creatures.

In the Java source listings, we follow the coding conventions most frequently used in the Java community. Class names begin with capital letters; variable and method names begin with lowercase. All the letters in the names of constants are capitalized. We don’t use underscores to separate words in a long name; following common practice, we capitalize individual words (after the first) and run the words together. For example: thisIsAVariable, thisIsAMethod( ), ThisIsAClass, and THISISACONSTANT.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Java, 4th Edition

Learning Java, 4th Edition

Patrick Niemeyer, Daniel Leuck
Learning Java, 6th Edition

Learning Java, 6th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Learning Java, 5th Edition

Learning Java, 5th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Head First Java, 2nd Edition

Head First Java, 2nd Edition

Kathy Sierra, Bert Bates

Publisher Resources

ISBN: 1565927184Supplemental ContentCatalog PageErrata