网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

Which two are true about has-a and is-a relationships?()

  • A、 Inheritance represents an is-a relationship.
  • B、 Inheritance represents a has-a relationship.
  • C、 Interfaces must be used when creating a has-a relationship.
  • D、 Instance variables can be used when creating a has-a relationship.

参考答案

更多 “Which two are true about has-a and is-a relationships?()A、 Inheritance represents an is-a relationship.B、 Inheritance represents a has-a relationship.C、 Interfaces must be used when creating a has-a relationship.D、 Instance variables can be used when creating a has-a relationship.” 相关考题
考题 Which two statements are true about the Automatic Diagnostic Repository (ADR)?() A. The ADR base keeps all diagnostic information in binary formatB. SQL*Plus provides the ADRI script, which can be used to work with ADRC. The ADR can be used for problem diagnosis only when the database is openD. The ADR can be disabled by settting the DIAGNOSTIC_DEST parameter to nullE. The ADR can be used for problem diagnosis even when the database instance is downF. The ADR base is shared across multiple instances

考题 Given:Which three are true?() A.Cat is-a AnimalB.Cat is-a JumperC.Dog is-a AnimalD.Dog is-a JumperE.Cat has-a AnimalF.Beagle has-a TailG.Beagle has-a Jumper

考题 Given:Which two are true? () A.The output is mm.B.The output is mc.C.Component is-a Meter.D.Component has-a Meter.E.DeluxeThingy is-a Component.F.DeluxeThingy has-a Component.

考题 Which two statements are true about the Automatic Diagnostic Repository (ADR)?() (Choose two.) A. The ADR base keeps all diagnostic information in binary formatB. SQL*Plus provides the ADRI script, which can be used to work with ADRC. The ADR can be used for problem diagnosis only when the database is openD. The ADR can be disabled by settting the DIAGNOSTIC_DEST parameter to nullE. The ADR can be used for problem diagnosis even when the database instance is downF. The ADR base is shared across multiple instances

考题 Given that: Gadget has-a Sprocket and Gadget has-a Spring and Gadget is-a Widget and Widget has-a Sprocket Which two code fragments represent these relationships? () A.B.C.D.E.F.

考题 下列关于类之间关系的描述,正确的是()A、has-a表示一个类部分地使用另一个类B、uses-a表示类的包含关系C、is-a关系具有对称性D、is-a机制称为“继承”

考题 Which term represents the mode that is used when the router stores log messages in RAM memory?()A、syslog loggingB、terminal loggingC、buffered loggingD、console logging

考题 10. interface Jumper { public void jump(); }  ......  20. class Animal {}  ......  30. class Dog extends Animal { 31. Tail tail; 32. }  ......  40. class Beagle extends Dog implements Jumper {  41. public void jump() { }  42. }  .......  50. class Cat implements Jumper {  51. public void jump() { }  52. }  Which three are true?()A、 Cat is-a AnimalB、 Cat is-a JumperC、 Dog is-a AnimalD、 Dog is-a JumperE、 Cat has-a AnimalF、 Beagle has-a TailG、 Beagle has-a Jumper

考题 Which statement is true?()  A、 A flow layout can be used to position a component that should resize horizontally when the  container is resized.B、 A grid layout can be used to position a component tat should maintain a constant size even when  the container is resized.C、 A border layout can be used to position component that should maintain a constant size even when  the container is resized.D、 The grid bag layout can be used to give a grid-like layout which differs from the normal grid in that individual rows and columns can have unique sizes.E、 If two components are placed in the same column of a grid bag layout, and one component resizes horizontally, then the other component must resize horizontally.

考题 Which term represents the mode that is used when the router stores log messages in RAMmemory? ()A、syslog loggingB、terminal loggingC、buffered loggingD、console logging

考题 Which four are true?()A、 Has-a relationships should never be encapsulated.B、 Has-a relationships should be implemented using inheritance.C、 Has-a relationships can be implemented using instance variables.D、 Is-a relationships can be implemented using the extends keyword.E、 Is-a relationships can be implemented using the implements keyword.F、 An array or a collection can be used to implement a one-to-many has-a relationship.G、 The relationship between Movie and Actress is an example of an is-a relationship.

考题 public class Team extends java.util.LinkedList {  public void addPlayer(Player p) {  add(p);  }  public void compete(Team opponent) { /* more code here */ }  }  class Player { /* more code here */ }  Which two are true?()A、 This code will compile.B、 This code demonstrates proper design of an is-a relationship.C、 This code demonstrates proper design of a has-a relationship.D、 A Java programmer using the Team class could remove Player objects from a Team object.

考题 下面说法正确的是()A、继承表示is-a的关系B、继承表示has-a的关系C、要表示has-a的关系必须使用接口D、可以使用实例变量表示has-a的关系

考题 Which two statements are true about the primary address on an interface? ()A、It is the address used by default as the local address for broadcast and multicast packets sourced locally and sent out of the interfaceB、You use the primary address when you have multiple IP addresses belonging to the same subnet on the same intefaceC、It can be useful for selecting the local address used for packets sent out of unnumbered interfaces when multiple non-127 addresses are configured on the loopback interfaceD、By default, the primary address on an interface is selected as the nmerically highest local address configured on the interface

考题 Which two statements are true about the Automatic Diagnostic Repository (ADR)?() A、 The ADR base keeps all diagnostic information in binary formatB、 SQL*Plus provides the ADRI script, which can be used to work with ADRC、 The ADR can be used for problem diagnosis only when the database is openD、 The ADR can be disabled by settting the DIAGNOSTIC_DEST parameter to nullE、 The ADR can be used for problem diagnosis even when the database instance is downF、 The ADR base is shared across multiple instances

考题 Which two statements are true about the Automatic Diagnostic Repository (ADR)?() (Choose two.)A、The ADR base keeps all diagnostic information in binary formatB、SQL*Plus provides the ADRI script, which can be used to work with ADRC、The ADR can be used for problem diagnosis only when the database is openD、The ADR can be disabled by settting the DIAGNOSTIC_DEST parameter to nullE、The ADR can be used for problem diagnosis even when the database instance is downF、The ADR base is shared across multiple instances

考题 Which four statements are true?()A、Has-a relationships should never be encapsulated.B、Has-a relationships should be implemented using inheritance.C、Has-a relationships can be implemented using instance variables.D、Is-a relationships can be implemented using the extends keyword.E、Is-a relationships can be implemented using the implements keyword.F、An array or a collection can be used to implement a one-to-many has-a relationship.

考题 Which of the following statements about variables and their scopes are true? ()   A、 Instance variables are member variables of a class.B、 Instance variables are declared with the static keyword.C、 Local variables defined inside a method are created when the method is executed.D、 Local variables must be initialized before they are used.

考题 多选题Given: Which three are true?()ACat is-a AnimalBCat is-a JumperCDog is-a AnimalDDog is-a JumperECat has-a AnimalFBeagle has-a Tail

考题 多选题Which two are true about has-a and is-a relationships?()AInheritance represents an is-a relationship.BInheritance represents a has-a relationship.CInterfaces must be used when creating a has-a relationship.DInstance variables can be used when creating a has-a relationship.

考题 多选题public class Team extends java.util.LinkedList {  public void addPlayer(Player p) {  add(p);  }  public void compete(Team opponent) { /* more code here */ }  }  class Player { /* more code here */ }  Which two are true?()AThis code will compile.BThis code demonstrates proper design of an is-a relationship.CThis code demonstrates proper design of a has-a relationship.DA Java programmer using the Team class could remove Player objects from a Team object.

考题 多选题Which of the following statements about variables and their scopes are true? ()AInstance variables are member variables of a class.BInstance variables are declared with the static keyword.CLocal variables defined inside a method are created when the method is executed.DLocal variables must be initialized before they are used.

考题 多选题Which two statements are true about the primary address on an interface? ()AIt is the address used by default as the local address for broadcast and multicast packets sourced locally and sent out of the interfaceBYou use the primary address when you have multiple IP addresses belonging to the same subnet on the same intefaceCIt can be useful for selecting the local address used for packets sent out of unnumbered interfaces when multiple non-127 addresses are configured on the loopback interfaceDBy default, the primary address on an interface is selected as the nmerically highest local address configured on the interface

考题 多选题下面说法正确的是()A继承表示is-a的关系B继承表示has-a的关系C要表示has-a的关系必须使用接口D可以使用实例变量表示has-a的关系

考题 多选题10. interface Jumper { public void jump(); }  ......  20. class Animal {}  ......  30. class Dog extends Animal { 31. Tail tail; 32. }  ......  40. class Beagle extends Dog implements Jumper {  41. public void jump() { }  42. }  .......  50. class Cat implements Jumper {  51. public void jump() { }  52. }  Which three are true?()ACat is-a AnimalBCat is-a JumperCDog is-a AnimalDDog is-a JumperECat has-a AnimalFBeagle has-a TailGBeagle has-a Jumper

考题 多选题Which four statements are true?()AHas-a relationships should never be encapsulated.BHas-a relationships should be implemented using inheritance.CHas-a relationships can be implemented using instance variables.DIs-a relationships can be implemented using the extends keyword.EIs-a relationships can be implemented using the implements keyword.FAn array or a collection can be used to implement a one-to-many has-a relationship.

考题 多选题Which four are true?()AHas-a relationships should never be encapsulated.BHas-a relationships should be implemented using inheritance.CHas-a relationships can be implemented using instance variables.DIs-a relationships can be implemented using the extends keyword.EIs-a relationships can be implemented using the implements keyword.FAn array or a collection can be used to implement a one-to-many has-a relationship.GThe relationship between Movie and Actress is an example of an is-a relationship.