Solutions to other chapters:
Java Methods A & AB:
Object-Oriented Programming and Data Structures
Answers and Solutions to Exercises
Chapter 2
3. |
(b) | F (a compiler is needed only for software development) |
10. |
|
BLACK, BLUE, CYAN, DARK_GRAY,
GRAY, GREEN, LIGHT_GRAY, MAGENTA,
ORANGE, RED, PINK, WHITE, YELLOW |
11. |
(b) | + adds two numbers,
but it concatenates strings and concatenates a number to a string.
If you remove the parentheses around n + n , then
concatenation will be performed first, and instead of,
say, 10 you will get 55. |
|