奥鹏在线答案
- 2024-03-05 [单选] 关于以下程序代码的说明正确的是( )1.class HasStatic{2. private static int x=100;3. public static void main(String args[ ]){4. HasStatic hs1=new HasStatic( );5. hs1.x++;6. HasStatic hs2=new HasStatic( );7. hs2.x++;8. hs1=new HasStatic( );9. hs1.x++;10. HasStatic.x- -;11. System.out.println(“x=”+x);12. }13. }
- 2024-03-05 [单选] 下面不是合法标识符的是()
- 2024-03-05 [单选] MAX_LENGTH是int型public成员变量, 变量值保持为常量100,用简短语句定义这个变量( )。。
- 2024-03-05 [单选] 下面那一项不会出现编程错误( )。。
- 2024-03-05 [单选] 指出下列程序的运行结果 int i = 9; switch (i) { default: System.out.println("default"); case 0: System.out.println("zero"); break; case 1: System.out.println("one"); case 2: System.out.println("two");
- 2024-03-05 [多选] 下面的说法正确的是:
- 2024-03-05 [多选] 选出合理的标识符 ( )
- 2024-03-05 [多选] public class parent { int change() {} } class Child extends Parent { } 哪些方法可加入类Child中? ( )。。
- 2024-03-05 [多选] 下面哪些语句能够正确地生成5个空字符串? ( )
- 2024-03-05 [多选] 下述哪些说法是正确的? ( )