Given the code fragment:
176/177
Questions & Answers PDF
P-
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
177/177
Examine:
174/177
Questions & Answers PDF
P-
Which statement is true?
B
Explanation:
175/177
Questions & Answers PDF
P-
Given the code fragment:
What is the result?
D
Explanation:
173/177
Questions & Answers PDF
P-
Given:
Which action fixes the compiler error?
D
Given the code fragment:
What is the result?
D
Explanation:
171/177
Questions & Answers PDF
P-
Given the code fragment:
What is the result?
C
Explanation:
170/177
Questions & Answers PDF
P-
Given the code fragment:
Which two code fragments inserted at line 10 print ****?
168/177
Questions & Answers PDF
P-
E
Given the definitions of the Bird class and the Peacock class:
167/177
Questions & Answers PDF
P-
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
166/177
Questions & Answers PDF
P-