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

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
主站蜘蛛池模板: 宁蒗| 荥阳市| 逊克县| 黄陵县| 大关县| 富蕴县| 新郑市| 江山市| 武平县| 广安市| 台江县| 遂平县| 灵宝市| 扶余县| 台东市| 浮梁县| 桦甸市| 上蔡县| 海阳市| 包头市| 泰宁县| 屏东市| 霍邱县| 双牌县| 新巴尔虎右旗| 西平县| 达日县| 石家庄市| 樟树市| 宜春市| 全椒县| 台州市| 襄汾县| 杭锦旗| 白河县| 汽车| 来凤县| 西林县| 绩溪县| 朝阳区| 兴安盟|