This preview shows page 1. Sign up to view the full content.
Unformatted text preview: short circuiting: True || or False &&Java stops evaluating from thereyou can use this to prevent division by zero from crashing your program Careful with comparing doublesdecimals not represented accurately Only really hurts for equality tests Double on one or both sides for division = double result Can only compare doubles for almost equality Strings Finding length of the string \t = tab = one character Null = not a string, but is a value No empty char literals allowed...
View Full Document
- Spring '11