- 关于以下程序代码的说明正确的是()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.}
- 执行完以下代码int [ ] x = newint[25];后,以下哪项说明是正确的
- 容器Panel和 Applet缺省使用的布局编辑策略是
- 设有下面两个类的定义:class Person {class Student extends Person {longid;//身份证号intscore;//入学总分String name;//姓名intgetScore(){)return score;}}则类Person和类Student的关系是
首页上一页157
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
尾页下一页 置顶