What will be printed by the statements below?
Int x = 20;
Int y = x;
X++;
Y--;
System.out.print ("x = " + x + ", y = " + y) ;
X = 21, y = 19
A) x = 20, y = 20
B) x = 21, y = 20
C) x = 20, y = 19
D) x = 21, y = 19
Correct Answer:
Verified
Q23: What is the value of the following
Q32: Which of the following statements is correct
Q50: What is the value of the following
Q74: What is the value of Math.pow(2, 3)?
A)5.0
B)6.0
C)8.0
D)9.0
Q109: What are the values of num1 and
Q110: Assume the following variables have been declared
Q111: A student's class average can be computed
Q115: Assume the following variables have been declared
Q116: Which one of the following is a
Q117: Which of the following is the mathematical
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents