For reference only:
First question:
- E
- C
- E
- A
- D
- D
- C
- A
- C
- A
- C
- A
- B
- A
- B
- C
- C
- D
- B
- C
The second question:
- True
True
False
- 11
12
13
14
- No such file found
Doing finally
- This is a static method!
This is a common method!
Question three:
Class variables:x, Y
Instance variables:y (instance variable)
- Y=5
- Y=6
- x=2
- x=2
identifymyparts.x=2
Question fourth: instantiation, assigning initial value, printing values
The second set of reference answers:
- B
- C
- B
- C
- A
- Father class Create
Father class Create
Child class Create
- C
- C
- A
- D
- A
- A
- B
- I lost it.
- A
- (1) Java file name must be identical to the class name
(2) If there is only one class in the file, the file name must match the class name
(3) There can be only one public class in a Java file
(4) If there is no public class, the file name can match any class name
17. Root directory of the installation directory of the JDK that points to Java
18. Keywords: extends
. C
B.
A
A. C
23 ~ 25 Lost.
(1) C
(2) True
True
False
(3) A
(4) URL: protocol name + host name + port number (range) + file name
(5) C
(6) A
Java Previous Test paper reference answer!!!