✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Яким буде результат виконання коду?
public class Test{
private static final int ON = 1;
private static final int OFF = 0;
public static void main(String[] args){
int state = 1;
switch(state){
case ON:
System.out.println("On");
break;
default:
System.out.println("Unknown");
case OFF:
System.out.println("Off");
}
}
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!