单项选择题

执行下面程序后输出的正确结果是
public class Test
public static void main(String args[])
byte x=3,y=4;
long r=80L;
System.out.print(r/y);
System.out.print(",");
System.out.print(x/y);

A.20.0,1
B.20.0,1.0
C.20,0
D.20,1.0
<上一题 目录 下一题>
热门 试题

单项选择题
在下面附属类方法中的下划线处应填入的正确参数是 public void writeData(______)throws IOException GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+ | +salary+ | +calendar.get(Calendar.YEAR)+ | +(calendar.get(Calendar.MQNTH)+1)+ | +calendar.get(Calendar.DAY_OF_MONTH));
A.Employee[]e
B."employee.dat"
C.PrintWriter out
D.BufferedWriter
单项选择题
下列内部类的正确用途是 btnn.addActionListener(new 注册监听器 ActionListener() public void actionPerformed(ActionEvent event) String s=input.getText(); output.setText( Hello +s+ ,Welcome You! ); );
A.用于访问外部类的数据
B.用于进行事件处理
C.隐藏起来不被同一包中的其他类所见
D.生成事件适配器
相关试题
  • Java语言的循环语句包括for语句、do-while...
  • 请写出下面程序的运行结果: public clas...
  • 创建一个显示“选项”的菜单项对象mi的正确...
  • 所有由Container派生的类称为______...
  • 下面程序段是创建一个Date类的对象并把它串...