试题通
试题通
APP下载
首页
>
财会金融
>
Java计算机考试题题库
试题通
搜索
Java计算机考试题题库
Java计算机考试题题库
章节

Java计算机考试题题库(Java)

题数量:118
去答题
章节

Java计算机考试题题库(Java2)

题数量:147
去答题
试题通
Java计算机考试题题库
试题通
18. (单选题)下列哪个叙述是正确的?

A.   成员变量的名字不可以和局部变量的相同。

B.   方法的参数的名字可以和方法中声明的局部变量的名字相同。

C.   成员变量没有默认值。

D.   局部变量没有默认值。

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-35f0-c04c-ee30166b1a01.html
查看题目
18. (单选题)
类Test1定义如下:
public class Test1{
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-bac0-c04c-ee30166b1a01.html
查看题目
10. (单选题)
应用程序的main方法中有以下语句,则输出的结果是 ( )。
String s = "xxxxxxxxxxxxxxx#123#456#zzzzz";
int n = s.indexOf("#");
int k = s.indexOf("#", n+1);
String s2 = s.substring(n+1, k);
System.out.println(s2);

A.   123456

B.   123

C.  xxxxxxxxxxxxxxx

D.  zzzzz

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-ab20-c04c-ee30166b1a00.html
查看题目
2. (单选题)Java程序编译后生成的文件是( )。

A.   字节码

B.   Espresso

C.   机器码

D.   二进制码

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-d5b8-c04c-ee30166b1a01.html
查看题目
2 .public class Interesting{
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-9798-c04c-ee30166b1a03.html
查看题目
7. (单选题)实现接口的关键字是( )。

A.   implements

B.   interface

C.   extends

D.   throws

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-2268-c04c-ee30166b1a02.html
查看题目
25. (单选题)
对于catch子句的排列,下列哪种是正确的?( )

A.  子类在先,父类在后

B.  有继承关系的异常不能在同一个try程序段内

C.  父类在先,子类在后

D.  如何排列都无关

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

A.   Hello_World

B.   class

C.   $123username

D.   username123

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-e940-c04c-ee30166b1a00.html
查看题目
32. (单选题)
下面关于类的说法错误的是( )

A.  类中包含数据变量和方法

B.  Java语言的类支持单继承和多继承

C.  类是Java语言中的一种复合数据类型

D.  类是对所有具有一定共性的对象的抽象

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-dde8-c04c-ee30166b1a01.html
查看题目
41. (单选题)
下列叙述正确的是( )。

A.  成员变量的名字不可以与局部变量的名称相同

B.  方法的参数名字可以与方法中声明的局部变量名称相同

C.  成员变量没有默认值

D.  局部变量没有默认值

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-ed88-c04c-ee30166b1a01.html
查看题目

Java计算机考试题题库

首页
>
财会金融
>
Java计算机考试题题库

Java计算机考试题题库

手机预览
试题通
Java计算机考试题题库
章节

Java计算机考试题题库(Java)

题数量:118
去答题
章节

Java计算机考试题题库(Java2)

题数量:147
去答题
试题通
试题通
Java计算机考试题题库

相关题目

18. (单选题)下列哪个叙述是正确的?

A.   成员变量的名字不可以和局部变量的相同。

B.   方法的参数的名字可以和方法中声明的局部变量的名字相同。

C.   成员变量没有默认值。

D.   局部变量没有默认值。

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-35f0-c04c-ee30166b1a01.html
查看题目
18. (单选题)
类Test1定义如下:
public class Test1{
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-bac0-c04c-ee30166b1a01.html
查看题目
10. (单选题)
应用程序的main方法中有以下语句,则输出的结果是 ( )。
String s = "xxxxxxxxxxxxxxx#123#456#zzzzz";
int n = s.indexOf("#");
int k = s.indexOf("#", n+1);
String s2 = s.substring(n+1, k);
System.out.println(s2);

A.   123456

B.   123

C.  xxxxxxxxxxxxxxx

D.  zzzzz

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-ab20-c04c-ee30166b1a00.html
查看题目
2. (单选题)Java程序编译后生成的文件是( )。

A.   字节码

B.   Espresso

C.   机器码

D.   二进制码

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-d5b8-c04c-ee30166b1a01.html
查看题目
2 .public class Interesting{
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-9798-c04c-ee30166b1a03.html
查看题目
7. (单选题)实现接口的关键字是( )。

A.   implements

B.   interface

C.   extends

D.   throws

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-2268-c04c-ee30166b1a02.html
查看题目
25. (单选题)
对于catch子句的排列,下列哪种是正确的?( )

A.  子类在先,父类在后

B.  有继承关系的异常不能在同一个try程序段内

C.  父类在先,子类在后

D.  如何排列都无关

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

A.   Hello_World

B.   class

C.   $123username

D.   username123

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-e940-c04c-ee30166b1a00.html
查看题目
32. (单选题)
下面关于类的说法错误的是( )

A.  类中包含数据变量和方法

B.  Java语言的类支持单继承和多继承

C.  类是Java语言中的一种复合数据类型

D.  类是对所有具有一定共性的对象的抽象

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-dde8-c04c-ee30166b1a01.html
查看题目
41. (单选题)
下列叙述正确的是( )。

A.  成员变量的名字不可以与局部变量的名称相同

B.  方法的参数名字可以与方法中声明的局部变量名称相同

C.  成员变量没有默认值

D.  局部变量没有默认值

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-ed88-c04c-ee30166b1a01.html
查看题目
试题通小程序
试题通app下载