APP下载
首页
>
财会金融
>
Java计算机考试题题库
搜索
Java计算机考试题题库
题目内容
(
单选题
)
10 t.printValue(10);

答案:空

Java计算机考试题题库
7. (单选题)实现接口的关键字是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-2268-c04c-ee30166b1a02.html
点击查看题目
43. (单选题)
设int[][] x = {{1,2},{3},{4,5,6}},则x[1].length()的值为( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-f170-c04c-ee30166b1a01.html
点击查看题目
11. (单选题)
以下程序编译后,会产生( )个类文件。
class PrintString{
void print( ){
System.out.println( );
}
}
public class Hello{
public static void main( ){
printString ph=new printString();
ph.print( );
}
}
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-e558-c04c-ee30166b1a01.html
点击查看题目
18. (单选题)( )是Java应用程序中特有的方法,是程序执行的入口方法。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-71f8-c04c-ee30166b1a00.html
点击查看题目
12. (单选题)finaly中的代码将( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-2a38-c04c-ee30166b1a02.html
点击查看题目
1. (单选题)不是Java关键字的是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-0498-c04c-ee30166b1a03.html
点击查看题目
58. (判断题)abstract类中只可以有abstract方法。( )
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b8-08e0-c04c-ee30166b1a00.html
点击查看题目
20. (单选题)
下列数组初始化形式正确的是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-c290-c04c-ee30166b1a00.html
点击查看题目
1. (单选题)子类在引用父类中被隐藏的域或被覆盖的方法时,使用的关键字为( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-12c8-c04c-ee30166b1a00.html
点击查看题目
12. (单选题)以下选项中,属于不合法的标识符是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-e940-c04c-ee30166b1a00.html
点击查看题目
首页
>
财会金融
>
Java计算机考试题题库
题目内容
(
单选题
)
手机预览
Java计算机考试题题库

10 t.printValue(10);

答案:空

分享
Java计算机考试题题库
相关题目
7. (单选题)实现接口的关键字是( )。

A.   implements

B.   interface

C.   extends

D.   throws

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-2268-c04c-ee30166b1a02.html
点击查看答案
43. (单选题)
设int[][] x = {{1,2},{3},{4,5,6}},则x[1].length()的值为( )。

A.   1

B.   2

C.   3

D.   4

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-f170-c04c-ee30166b1a01.html
点击查看答案
11. (单选题)
以下程序编译后,会产生( )个类文件。
class PrintString{
void print( ){
System.out.println( );
}
}
public class Hello{
public static void main( ){
printString ph=new printString();
ph.print( );
}
}

A.   1

B.   2

C.   3

D.   4

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-e558-c04c-ee30166b1a01.html
点击查看答案
18. (单选题)( )是Java应用程序中特有的方法,是程序执行的入口方法。

A.   static修饰的方法

B.   构造方法

C.   main 方法

D.   抽象方法

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-71f8-c04c-ee30166b1a00.html
点击查看答案
12. (单选题)finaly中的代码将( )。

A.   如果没有catch语句块,finally语句块才会被执行

B.   总是被执行

C.   异常发生时才执行

D.   异常没有发生时才被执行

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-2a38-c04c-ee30166b1a02.html
点击查看答案
1. (单选题)不是Java关键字的是( )。

A.   integer

B.   double

C.   float

D.   Char

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-0498-c04c-ee30166b1a03.html
点击查看答案
58. (判断题)abstract类中只可以有abstract方法。( )
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b8-08e0-c04c-ee30166b1a00.html
点击查看答案
20. (单选题)
下列数组初始化形式正确的是( )。

A.  int t4[][]; t4={1,2,3,4,5,6};

B.  int t2[][]={1,2,3,4,5,6};

C.  int t1[][]={{1,2},{3,4},{5,6}};

D.  int t3[3][2]={1,2,3,4,5,6};

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-c290-c04c-ee30166b1a00.html
点击查看答案
1. (单选题)子类在引用父类中被隐藏的域或被覆盖的方法时,使用的关键字为( )。

A.   super

B.   this

C.   then

D.   Import

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-12c8-c04c-ee30166b1a00.html
点击查看答案
12. (单选题)以下选项中,属于不合法的标识符是( )。

A.   Hello_World

B.   class

C.   $123username

D.   username123

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-e940-c04c-ee30166b1a00.html
点击查看答案
试题通小程序
试题通app下载