OOPS
August 25, 2024
OOPS
August 25, 2024
OOPS
August 25, 2024
OOPS
August 25, 2024

OOPS

Question 176
What is the output of the following Java code

int count=1;

int num=25;

while (count<25)

{

num= num- 1 ;

count++ ;

}

System. out.println(count +” “+num);

A
24 0
B
24 1
C
25 0
D
25 1
Question 176 Explanation: 
The final output will be

Count = 25,num = 1.

Correct Answer: D
Question 176 Explanation: 
The final output will be

Count = 25,num = 1.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!