Java Previous Test paper reference answer!!!

Source: Internet
Author: User

For reference only:

First question:

    1. E
    2. C
    3. E
    4. A
    5. D
    6. D
    7. C
    8. A
    9. C
    10. A
    11. C
    12. A
    13. B
    14. A
    15. B
    16. C
    17. C
    18. D
    19. B
    20. C

The second question:

    1. True

True

False

    1. 11

12

13

14

    1. No such file found

Doing finally

    1. This is a static method!

This is a common method!

Question three:

Class variables:x, Y

Instance variables:y (instance variable)

    1. Y=5
    2. Y=6
    3. x=2
    4. x=2

identifymyparts.x=2

Question fourth: instantiation, assigning initial value, printing values

The second set of reference answers:

    1. B
    2. C
    3. B
    4. C
    5. A
    6. Father class Create

Father class Create

Child class Create

    1. C
    2. C
    3. A
    4. D
    5. A
    6. A
    7. B
    8. I lost it.
    9. A
    10. (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!!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.