官术网_书友最值得收藏!

Test your knowledge

  1. Objects are also known as:
    1. Subclasses.
    2. Fields.
    3. Instances.
  2. Which of the following class names follows the Pascal case convention and would be an appropriate name for a class in Java 9:
    1. regularDecagon
    2. RegularDecagon
    3. Regulardecagon
  3. The code specified in a method within a class:
    1. Can access the fields specified in the class.
    2. Cannot interact with other members of the class.
    3. Cannot access the fields specified in the class.
  4. The functions defined in a class to encapsulate behavior for each instance of the class are known as:
    1. Subclasses.
    2. Fields.
    3. Methods.
  5. A subclass:
    1. Inherits only methods from its superclass.
    2. Inherits only fields from its superclass.
    3. Inherits all members from its superclass.
  6. The variables defined in a class to encapsulate data for each instance of the class in Java 9 are known as:
    1. Fields.
    2. Methods.
    3. Subclasses.
  7. The variables defined in a class to encapsulate data for each instance of the class in Java 9 are known as:
    1. Fields.
    2. Methods.
    3. Subclasses.
  8. Which of the following field names follows the Camel case convention and would be an appropriate name for a field in Java 9:
    1. SemiMinorAxis
    2. semiMinorAxis
    3. semiminoraxis
主站蜘蛛池模板: 台南市| 肇庆市| 吉木萨尔县| 淮安市| 阳春市| 普洱| 于田县| 中阳县| 巴南区| 柘荣县| 普宁市| 香河县| 萍乡市| 高要市| 大英县| 安丘市| 沛县| 康马县| 桓仁| 班戈县| 佛坪县| 安义县| 江城| 防城港市| 柳林县| 东城区| 纳雍县| 大余县| 乌鲁木齐县| 中西区| 金门县| 桓台县| 洛南县| 盐山县| 南平市| 安陆市| 镇坪县| 新化县| 文登市| 秦安县| 鞍山市|