正在加载图片...
a void amethod(int i) throws Exception t B void amethod(long i)throws Exception t C ) D public void amethod(int i)throws Exception t 20.在下面代码中那些修饰符可以放在X位置 public static void main( String argO] 修饰符位置 XX/ class MyInner B C D friend 21.根据程序代码选择所有返回为true的表达式 public static void main(String argsI) Float f=new Float(4.2f) Double d=new Double(4.2): float f=4. 2f c=f a fequls(d) B c==f 22.哪两种方法不能直接引起一个线程中断执行 a sleep E notify F notifyAllO G 23.重载类ha的构造方法,下面哪些是正确的 a public void hai (int a) B hai(int a, int b) c public hai(int a) D int hai(int c, int d) E int hao F int hai(String s) 24.覆盖(重写)方法 void hai( int a int b),下面那些是正确的 a public void hai(int a, int b) B protected void hai(int a, int b) publIc int c, int d) E int Hao F int hai(String s) 25如果在ty代码块中没有异常发生,则会输出那些结果A void amethod(int i) throws Exception {} B void amethod(long i)throws Exception {} C void amethod(long i){} D public void amethod(int i) throws Exception {} 20. 在下面代码中那些修饰符可以放在XX位置 public class MyClass1 { public static void main(String argv[]){ } /*修饰符位置 XX */ class MyInner {} } A public B private C static D friend 21. 根据程序代码选择所有返回为true的表达式 public static void main(String args[]){ Float f=new Float(4.2f); Float c; Double d=new Double(4.2); float fl=4.2f; c=f; } A f.equls(d) B c==f C c==d D c.equls(f) 22. 哪两种方法不能直接引起一个线程中断执行 A sleep(); B stop(); C yield(); D wait(); E notify(); F notifyAll() G synchronized() 23. 重载类hai的构造方法,下面哪些是正确的 A public void hai(int a) B hai(int a,int b) C public hai(int a) D int hai(int c, int d) E int hai() F int hai(String s) 24. 覆盖(重写)方法void hai(int a,int b),下面那些是正确的 A public void hai(int a,int b) B protected void hai(int a,int b) C public hai(int a) D int hai(int c, int d) E int Hai() F int hai(String s) 25. 如果在try代码块中没有异常发生,则会输出那些结果
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有