nhưng ^ HOẶC nhà điều hành độc quyền C thứ đánh giá đến 7. E đánh giá đến 16, và F đánh giá 0 (2 5 không phải là từ 2 đến 5). 2. þ B và D. B là chính xác bởi vì lớp loại Ticker là một phần của hệ thống cấp bậc lớp học của t, do đó nó là một sử dụng hợp pháp của các nhà điều hành instanceof. | 62 Chapter 3 Operators and Assignments SELF TEST ANSWERS Java Operators Sun Objective I. 0 B and D. B and D both evaluate to 32. B is shifting bits right then left using the signed bit shifters and . D is shifting bits using the unsigned operator but since the beginning number is positive the sign is maintained. 13 A evaluates to 8 C looks like 2 to the 5th power but A is the Exclusive OR operator so C evaluates to 7. E evaluates to 16 and F evaluates to 0 2 5 is not 2 to the 5th . 2. 0 B and D. B is correct because class type Ticker is part of the class hierarchy of t therefore it is a legal use of the instanceof operator. D is also correct because Component is part of the hierarchy of t because Ticker extends Component in line 2. s A is incorrect because the syntax is wrong. A variable or null always appears before the instanceof operator and a type appears after it. C and E are incorrect because the statement is used as a method which is illegal. F is incorrect because the String class is not in the hierarchy of the t object. 3. 0 C. The code will not compile because in line 5 the line will work only if we use x y in the line. The operator compares values to produce a boolean whereas the operator assigns a value to variables. s A B and D are incorrect because the code does not get as far as compiling. If we corrected this code the output would be false. 4. 0 B D and E. B is correct because the reference variables fl and f3 refer to the same array object. D is correct because it is legal to compare integer and floating-point types. E is correct because it is legal to compare a variable with an array element. s C is incorrect because f2 is an array object and f1 1 is an array element. 5. 0 A. The operator moves all bits to the right zero filling the left bits. The bit transformation looks like this Before 1000 0000 0000 0000 0000 0000 0000 0000 After 0000 0000 0000 0000 0000 0000 0000 0001 s C is incorrect because the operator zero fills the left bits which in