310-035 55
What is the result?
A. 42
B. An exception is thrown at runtime.
C. Compilation fails because of an error on line 12.
D. Compilation fails because of an error on line 16.
E. Compilation fails because of an error on line 17.
Answer: A
Q.128 Which two are reserved words in the Java programming language? (Choose two)
A. run
B. import
C. default
D. implement
Answer: B, C
Q.129 Which two statements are true regarding the return values of property written hashCode and equals
methods from two instances of the same class? (Choose two)
A. If the hashCode values are different, the objects might be equal.
B. If the hashCode values are the same, the object must be equal.
C. If the hashCode values are the same, the objects might be equal.
D. If the hashCode values are different, the objects must be unequal.
Answer:
Q.130 What is the numerical range of a char?
A. 0 ... 32767
B. 0 ... 65535
C. %256 ... 255
D. %32768 ... 32767
E. Range is platform dependent.
Answer: B Explanation: Range for char/Character = 0 ==> 65535
Q.131 Given:
1. 1. public class Test {
2. 2. private static float[] f = new float[2];
3. 3. public static void main(String args[]) {
4. 4. System.out.println( f[0] = + f[0]);
5. 5. }
6. 6. }
21certify.com |