单项选择题

阅读下面程序:
import java.io.*;
public class TypeTransition
 public static void main(String args[])
  char a=’a’;
  int i=100;
  long y=456L;
  int aa=a+i;
  long yy=y-aa;
  System.out.print("aa="+a

A.;
  System.out.print("yy="+yy);
<上一题 目录 下一题>
热门 试题

单项选择题
阅读下面程序 public class ForLoopStatement public static void main(String[] args) int i,j; for(i=1;i<5;i++) i循环 for(j=1;j<=i;j++)System.out.print(i+ * +j+ = +i*j+ ); j循环 System.out.println(); 程序完成后,i循环和J循环执行的次数分别是
A.4,10
B.8,9
C.9,8
D.10,10
单项选择题
阅读下面程序 public cmass ThreadTest public static void main(String args[]) Thread t1=new Thread(new Hello()); Thread t2=new Thread(new Hello()); t1.start(); t2.start(); class Hello implements Runnable int i; public void run() while(true) System.out.println( Hello +i++); it(i==5) break; 此程序创建线程所使用的方法是
A.继承Thread类
B.实现Runnable接口
C.t1.start()
D.t2.start()
相关试题
  • Applet类属______包。
  • 在Java线程中,共享数据的所有访问都必须作...
  • Swing是由纯Java实现的轻量级构件,没有本...
  • 在java.io包中,字符输出流类都是____...
  • 类是变量和______的集合体。