APP下载
首页
>
财会金融
>
Java计算机考试题题库
搜索
Java计算机考试题题库
题目内容
(
单选题
)
3 public void printValue( ){…}

答案:INTINTJ

Java计算机考试题题库
14. (单选题)下列关于catch语句的说法不正确的是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-2e20-c04c-ee30166b1a01.html
点击查看题目
13. (单选题)
分析下列程序:
public class Test {
public static void main( ) {
int i=0;
while( ){
if(i==4){ break; }
i++;
}
}
}
程序可能的运行结果为( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-1c08-c04c-ee30166b1a00.html
点击查看题目
55. (判断题)Java语言的主要贡献者是James Gosling。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-87f8-c04c-ee30166b1a03.html
点击查看题目
11. (单选题)
下列语句序列执行后,b的值是( )。
int b=9,a=6;
while(--a!=3) b=b+2;
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-1820-c04c-ee30166b1a00.html
点击查看题目
48. (填空题)在Java中,_________类用于操作磁盘中文件和目录。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-8028-c04c-ee30166b1a02.html
点击查看题目
65. (判断题)static方法不可以重载。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b8-0cc8-c04c-ee30166b1a02.html
点击查看题目
2.(判断题)由继承性可知,程序中子类拥有的成员数目一定大于等于父类拥有的成员数目。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-9138-c04c-ee30166b1a00.html
点击查看题目
2. (单选题)Java程序编译后生成的文件是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-d5b8-c04c-ee30166b1a01.html
点击查看题目
4. (判断题)如果p是父类Parent的对象,而c是子类Child的对象,则语句p=c是正确的。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-9138-c04c-ee30166b1a02.html
点击查看题目
8. (单选题)现有类A和接口B,以下选项中表示类A实现接口B的是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-2650-c04c-ee30166b1a00.html
点击查看题目
首页
>
财会金融
>
Java计算机考试题题库
题目内容
(
单选题
)
手机预览
Java计算机考试题题库

3 public void printValue( ){…}

答案:INTINTJ

分享
Java计算机考试题题库
相关题目
14. (单选题)下列关于catch语句的说法不正确的是( )。

A.   catch必须与try配合使用

B.   catch的参数由异常类型和对象名组成

C.   catch语句可以有多个

D.   当多个异常类型是父子关系时,应先捕获父异常,再捕获子异常。

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-2e20-c04c-ee30166b1a01.html
点击查看答案
13. (单选题)
分析下列程序:
public class Test {
public static void main( ) {
int i=0;
while( ){
if(i==4){ break; }
i++;
}
}
}
程序可能的运行结果为( )。

A.   i=0

B.   i=3

C.   i=4

D.   编译不能通过

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-1c08-c04c-ee30166b1a00.html
点击查看答案
55. (判断题)Java语言的主要贡献者是James Gosling。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-87f8-c04c-ee30166b1a03.html
点击查看答案
11. (单选题)
下列语句序列执行后,b的值是( )。
int b=9,a=6;
while(--a!=3) b=b+2;

A.   9

B.   11

C.   13

D.   15

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-1820-c04c-ee30166b1a00.html
点击查看答案
48. (填空题)在Java中,_________类用于操作磁盘中文件和目录。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-8028-c04c-ee30166b1a02.html
点击查看答案
65. (判断题)static方法不可以重载。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b8-0cc8-c04c-ee30166b1a02.html
点击查看答案
2.(判断题)由继承性可知,程序中子类拥有的成员数目一定大于等于父类拥有的成员数目。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-9138-c04c-ee30166b1a00.html
点击查看答案
2. (单选题)Java程序编译后生成的文件是( )。

A.   字节码

B.   Espresso

C.   机器码

D.   二进制码

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-d5b8-c04c-ee30166b1a01.html
点击查看答案
4. (判断题)如果p是父类Parent的对象,而c是子类Child的对象,则语句p=c是正确的。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-9138-c04c-ee30166b1a02.html
点击查看答案
8. (单选题)现有类A和接口B,以下选项中表示类A实现接口B的是( )。

A.   class A extends B

B.   class B implements A

C.   class B extends A

D.   class A implements B

https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-2650-c04c-ee30166b1a00.html
点击查看答案
试题通小程序
试题通app下载