试题通
试题通
APP下载
首页
>
财会金融
>
Java计算机考试题题库
试题通
搜索
Java计算机考试题题库
题目内容
(
单选题
)
18. (单选题)
类Test1定义如下:
public class Test1{

答案:空

试题通
Java计算机考试题题库
试题通
3. //do sth
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-9b80-c04c-ee30166b1a00.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
点击查看题目
15. (单选题)在下列方法定义中,( )不是方法int f ( ){…}的重载方法。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-6e10-c04c-ee30166b1a00.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
点击查看题目
48. (填空题)在Java中,_________类用于操作磁盘中文件和目录。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-8028-c04c-ee30166b1a02.html
点击查看题目
16. (单选题)能从循环语句的循环体中跳出的语句是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-23d8-c04c-ee30166b1a01.html
点击查看题目
13. (单选题)关于方法重载的描述,以下选项中正确的是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-ed28-c04c-ee30166b1a00.html
点击查看题目
2. (单选题)Java程序编译后生成的文件是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-d5b8-c04c-ee30166b1a01.html
点击查看题目
6. (单选题)不是类及类成员访问控制符的是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-56a0-c04c-ee30166b1a01.html
点击查看题目
17. (单选题)下面的运算符中,用于执行除法运算是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-f110-c04c-ee30166b1a02.html
点击查看题目
首页
>
财会金融
>
Java计算机考试题题库
题目内容
(
单选题
)
手机预览
试题通
Java计算机考试题题库

18. (单选题)
类Test1定义如下:
public class Test1{

答案:空

试题通
分享
试题通
试题通
Java计算机考试题题库
相关题目
3. //do sth
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-9b80-c04c-ee30166b1a00.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
点击查看答案
15. (单选题)在下列方法定义中,( )不是方法int f ( ){…}的重载方法。

A.   int f( int a ){…}

B.   int f (double i){…}

C.   int f (int i,int j ){…}

D.   int f(char i ){…}

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-6e10-c04c-ee30166b1a00.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
点击查看答案
48. (填空题)在Java中,_________类用于操作磁盘中文件和目录。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-8028-c04c-ee30166b1a02.html
点击查看答案
16. (单选题)能从循环语句的循环体中跳出的语句是( )。

A.   for语句

B.   break语句

C.   while语句

D.   continue语句

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-23d8-c04c-ee30166b1a01.html
点击查看答案
13. (单选题)关于方法重载的描述,以下选项中正确的是( )。

A.   参数类型必须一致

B.   方法名相同,参数的个数或类型不一致

C.   参数个数必须一致

D.   返回值类型必须不同

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-ed28-c04c-ee30166b1a00.html
点击查看答案
2. (单选题)Java程序编译后生成的文件是( )。

A.   字节码

B.   Espresso

C.   机器码

D.   二进制码

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-d5b8-c04c-ee30166b1a01.html
点击查看答案
6. (单选题)不是类及类成员访问控制符的是( )。

A.   public

B.   private

C.   static

D.   Protected

https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-56a0-c04c-ee30166b1a01.html
点击查看答案
17. (单选题)下面的运算符中,用于执行除法运算是( )。

A.   /

B.   \

C.   %

D.   *

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