Computer Rank Examination Zhenti 2 (JAVA)

 

answer:

 

Resolution:
(Note: Resolution section blogger with the knowledge and search on Baidu summed up)
 

1. D

 

(A) belongs to the class reference data types of the JAVA language.

(B) belonging to the interface JAVA language reference data types.

(C) an array of reference data belonging to the JAVA language type.

(D) double JAVA language does not belong to the reference data types.

 

2. C

(A)

(B)

(C) char can not be converted into a byte.

(D)

 

3. C

(A)

(B)

(C) debugging on Eclipse.

(D)

 

4. A

(A) debugging on Eclipse.

(B)

(C)

(D)

 

5. B

(A)

(B) In the java language, member variables are modified static keyword variable called class variables.

(C)

(D)

 

6. A/B

The value of variable c (1) statement (A) s = "class", is performed char c = s.charAt l (the letter lowercase L), is not a (digital).

(B) indexOf method to find the start position of a character or string in the characteristics of the current string, or -1 if there is no (not 0).

(C) concat method of strings into a new string.

Action (D) equals the method is to determine the contents of two strings are the same objects.

 

7. D

(A)

(B)

(C)

(D) int e [3] = new int [3] is a syntax error, the correct wording is int e [] = new int [3].

 

8. C

(A)

(B)

(C) Java layout manager in the main stream has FlowLayout layout manager, BorderLayout border layout manager, GridLayout grid layout manager. LineartLayout is Android layout controls.

(D)

 

 

9. C

(A)

(B)

Common types of events language (C) TouchEvent not java.

(D)

 

10. B

(A)

(B) Color c2 = new Color (Color.BLUE) error, i.e., the Color class to be no method parameters.

(C)

(D)

 

11. D

(A) is a java exception handler is to provide a mechanism for errors.

(B) java.lang.Exception class is the parent class for all exceptions.

(C) java.lang.NullPointerException null pointer exception class, NullPointer is a null pointer, Exception is abnormal.

 

(D)对于Exception类的非运行异常,程序不会自动跳转到异常处理程序,要求在编写程序时进行捕获和声明。

 

12. B

(A)

(B)try catch语句中异常类排列顺序应该从小到大。

(C)

(D)

 

13. D

(A)通过实现java.lang.Runnable接口可实现多线程

(B)通过继承java.lang.Thread类可实现多线程

(C)线程是一个执行单位

(D)start()方法调用后并非马上执行多线程代码,start()是使得该线程变为可执行态(Runnable),什么时候执行是由操作系统决定的。

 

 

 

14. C

(A)数据库是相互关联的数据的集合。

(B)以关系模型为数据组织储存方式的数据库称为关系型数据库。

(C)数据库应用模型不只采用基于网络的B/S结构体系。

(D)通常使用SQL语言对数据库中的数据进行增加、查询、更新、删除等操作。

 

15. A

(A)Statement是用于执行简单的不带参数的SQL语句。

(B)

(C)

(D)

 

16. A

(A)在Eclipse上调试。

(B)

(C)

(D)

 

17. C

(A)

(B)

(C)在Eclipse上调试。

(D)

 

18. D

(A)

(B)

(C)

(D)在Eclipse上调试。

 

19. D

(A)

(B)

(C)

(D)面向对象程序设计的基本特征包括封装、继承、多态。

 

20. D

(A)

(B)

(C)

(D)default修饰的成员变量不能被该类所在包之外的其他类访问,protected修饰的成员变量可以被该类所在包之外的其他子类(注意必须是子类)访问。

 

 

21. A

(A)接口不包括方法的实现。

(B)

(C)

(D)

 

22. C

(A)

(B)

(C)类Double定义在java.lang包中。

(D)

 

23. B

(A)

(B)List是一个接口。

(C)

(D)

 

24. B

(A)

(B)int b=order[order.length] 越界。

(C)

(D)

 

25. C

(A)

(B)

(C)setText(String s)设置文本会清除原先的文本。

(D)

 

26. A

(A)Applet不能执行任何本地计算机上的程序。

(B)

(C)

(D)

 

27. A

(A)产生事件可以是外部操作、内部操作。

(B)

(C)

(D)

 

28. B

(A)File类对象对应于系统中的一个目录或文件。

(B)CharArrayReader是一个把字符数组作为源的输入流(不是输出流)的实现。

(C)FileInputStream是以字节流方式读取。

(D)FileReader是把文件转换为字符流读入。

 

29. D

(A)实现DataInput和DataOutput接口。

(B)getFilePointer()方法,返回此文件中的当前偏移量。

(C)readFloat(),从此文件中读取一个float。

(D)writeChar(int v),按双字节值将char写入该文件,先写高字节 (注意是高字节)。

 

30. A

(A)executeDalete(String sql)不属于Statement接口提供的3个执行SQL语句的方法。

(B)

(C)

(D)

 

Guess you like

Origin www.cnblogs.com/antarctic/p/12078313.html