Consider the following program written in Java.
class Test{ public static void main(String args[]){ int x=7; if(x==2); // Note the semicolon System.out.println("NumberSeven"); System.out.println("NotSeven"); } }
What would the output of the program be?
A.NumberSeven NotSeven
B.NumberSeven
C.NotSeven
D.Error
Answers
Answered by
0
Hii dear here is your answer
option c is the correct answer
Hope it's help u
option c is the correct answer
Hope it's help u
Answered by
2
______✨ HEY MATE ✨_____
➡️Option (C) is the right answer ✔️
➡️Option (C) is the right answer ✔️
Similar questions
Math,
7 months ago
English,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Science,
1 year ago