单项选择题
下列属于合法的Java标识符是( )。
A."ABC"
B.&5678
C.+rriwo
D.saler
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
阅读下列代码后 public class Person int arr[]=new int[10]; public static void main(String args[]) System.out.println (arr[1]); 正确的说法是( )。
A.编译时将产生错误
B.编译时正确,运行时将产生错误
C.输出零
D.输出空
点击查看答案&解析
单项选择题
下列程序的功能是在监控台上每隔一秒钟显示一个字符串 Hello! ,能够填写在程序中下划线位置,使程序完整并能正确运行的语句是( )。 public class Test implements Runnable public static void main (String args[]) Test t=new Test (); Thread tt=new Thread(t); tt.start(); public void run() for(;;) try ______; catch( ______ e) System.out.println( Hello );
A.sleep(1000)
InterruptedException
B.sleep(1000)
InterruptedException
C.Thread.sleep(1000)
RuntimeException
D.Thread.sleep(1000)
InterruptedException
点击查看答案&解析
相关试题
Java对象串行化技术,主要是通过ObjectInpu...
当使用Thread t=new Thread(r)创建一...
break语句最常见的用法是在switch语句中,...
FileInputStream是字节流,BufferedWriter...
面向对象的语言将客观世界都看成由各种对象...