What is the result?

Given the code fragment What is the result? A. – 6 B. – 4 C. – 5 D. 5 E. 4 F. Compilation fails Explanation: Show Answer

Read More

What is the result?

Given the code fragment: What is the result? A. [green, red, cyan, yellow] B. Am IndexOutOfBoundsException is thrown at runtime C. [green, blue, yellow, cyan] D. [green, red, yellow, cyan] Show Answer

Read More

What is the result?

Given: What is the result? A. Result = 3 B. Result = 28 C. Result = 29 D. Result = 30 E. Result = 2 Explanation: Show Answer

Read More

Which code fragment can be inserted at line //insert code here to enable the code to compile?

Given: Which code fragment can be inserted at line //insert code here to enable the code tocompile? A. Cricket() { super(11, “Cricket”, “Condidtion OK”); num_umpires =3; num_substitutes=2; } B. Cricket() { this.num_umpires =3; this.num_substitutes=2; super(11, “Cricket”, “Condidtion OK”); } C. Cricket() { super.ground_condition = “Condition OK”; super.name=”Cricket”; super.num_players = 11; num_umpires =3; num_substitutes=2; } D. […]

Read More