number of employees Ans: No spaces allowed.
number_of_employees Ans: Underlines are allowed but are not conformant to the Java camel casing style.
odds&ends Ans: No & allowed.
anExtremelyLongVariableIfYouAskMe Ans: Legal, but too long.
Ans: Camel casing means that the variable name starts with a lower case letter and that each new word starts with an upper case letter. Pascal casing is like camel casing, except that the first letter is also upper case.
%f Ans: Print floating point variable as a decimal floating ponit number.
%s Ans: Print as a string.
%d Ans: Print as a character.
Ans:,p> int a = 2, b = 3;
long population = 6000000000; Ans: 6000000000 needs the L suffix to make it a long constant.
Ans: 7B hex = 01111011 bin = 64 + 32 + 16 + 8 + 2 + 1 = 123 dec.
Ans: 98 dec = 64 + 32 + 2 = 01100010 bin = 62 hex.
Ans: Bitwise and, bitwise or and bitwise exclusive or, respectively.
11011100 11011100 11011100 & 01101001 | 01101001 ^ 01101001 -------- -------- -------- 01001000 11111101 10110101
Ans: 0x2D == 45 dec
Ans: 33 dec == 21 hex
The factors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55. They sum to 284.
The factors of 284 are 1, 2, 4, 74, 142. They sum to 220.