- 下列有关Java的叙述错误的是
- 以下说法哪项是正确的()class MyListenerextends MouseAdapter implements MouseListener {public void mouseEntered (MouseEvent mev) {System. out.println("Mouseentered.") ; }}
- 关于以下程序段,正确的说法是()1.String s1=”abc”+”def”;2.String s2=new String (s1) ;3.if (s1= =s2)4.System. out.println(“= = succeeded”);5. if (s1.equals(s2))6.System. out.println( ".equals(succeeded”);
- 关于以下程序代码的说明正确的是()class HasStatic{private static int x=100;public static void main(String args[ ]){HasStatic hs1=new HasStatic( );hs1.x++;HasStatic hs2=new HasStatic( );hs2.x++;hs1=new HasStatic( );hs1.x++;HasStatic.x- —;System. out. println(“x=”+x);)}
- 在使用interface声明一个接口时,只可以使用()修饰符修饰该接口。
- 关于以下application的说明,正确的是()1. class StaticStuff2.{3.atic int x=10;4.statici xt=5;}5.public static void main (String args[ ]) {6.System. out.println(“x=”+ x);7.}8.static { x/=3 ;}9.}
- 以下声明合法的是
- 有程序如下,关于程序的描述哪个是正确的?public class Person {static int arr[] = new int[10];public static void main(String a[])System. out.println(arr[0]); }}
- 以下哪个不是Java的关键字?
- 编译并运行以下程序,以下描述哪个选项是正确的()1. class x{2. protected String toString({3.return super.toString O ; }4.}
首页上一页145
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
尾页下一页 置顶