Assume x is 0. What is the output of the following statement? if (x > 0) System.out.print("x is greater than 0"); else if (x < 0) System.out.print("x is less than 0"); else System.out.print("x equals 0");
A.
x is less than 0
B.
x is greater than 0
C.
x equals 0
D.
-None
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【判断题】In the switch...case structure of the Java language, the type of the switch expression cannot be of any type.
【单选题】听力原文:W: Harry! What's the matter? You look pale. Are you sick? M: I just had a terrible experience. W: Sit down. Let me get you a glass of water. M: No thanks, I'll be fine in a minute. W: Did you hav...
【简答题】One day Bob took two of his friends into the mountains. They put up their tents and then rode off to a forest to see how the trees were growing. In the afternoon when they were about ten kilometres fr...