单项选择题
下面程序的输出为( )。 public class Test { public static void main (String args[]) { int x,y; x=1; y=2; System.out.println("The output is"+x+y); } }
A.The output is xy
B.The output is 3
C.The output is 12
D.The output is x=1 y=2
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
文件操作中,语句public String getPath()的作用是( )。
A.得到一个包含路径的文件名
B.得到文件路径名字符串
C.得到文件对象的父路径名
D.得到文件的上一级目录名
点击查看答案&解析
单项选择题
下列选项中合法的Java语言赋值语句是( )。
A.x=y=9
B.x=y++;
C.x+y;
D.x++=y;
点击查看答案&解析
相关试题
已知如下代码: switch(m) { case ...
下列程序的功能是在监控台上每隔一秒钟显示...
设有下列两个类的定义,则类Person和类Man...
所有字节输出流都( )。
在Graphics类中,用来绘制圆的方法是( )...