Constant
width
font is used
for:
Code examples:
public void main(String args[]) { System.out.println("Hello, world"); }
Method, variable, and parameter names within the text, as well as keywords
Bold
constant
width
font is used for:
Presenting revised code examples as we work through a problem:
public void main(String args[]) {
System.out.println("Hello, world");
}
Highlighting a section of code for discussion within a longer code example
Italic font is used for URLs and filenames, and to introduce new terms.
Examples of the programs in this book may be retrieved online from:
http://www.oreilly.com/catalog/jthreads2 |
Get Java Threads, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.