Given the code fragment:
What is the result?
A. It results in a compile time error at line 18.
B. It results in a compile time error at line 9.
C. It prints : 1
D. It results in a compile time error at lines at lines 12 and 15.
A
Examine:
Which statement is true?
B
Explanation:
Given the code fragment:
What is the result?
D
Explanation:
Given:
Which action fixes the compiler error?
D
Given the code fragment:
What is the result?
D
Explanation:
Given the code fragment:
What is the result?
C
Explanation:
Given the code fragment:
Which two code fragments inserted at line 10 print ****?
E
Given the definitions of the Bird class and the Peacock class:
and the code fragment:
Which code snippet can be inserted to print Fly.Dance. ?
B
Given the code fragment:
Which action enables it to print AB?
B
Given the code fragment:
What is the result?
A. Sum is 600
B. Compilation fails at line n1.
C. Compilation fails at line n2.
D. A ClassCastException is thrown at line n1.
E. A ClassCastException is thrown at line n2.
E
Given the code fragment:
What is the result?
C
Given:
What is the result?
C
Explanation:
Given the definitions of the MyString class and the Test class:
What is the result?
D
Given:
What is the result?
D
Given the code fragment:
What is the result?
C
Explanation: