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

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

A programmer is designing a class to encapsulate the information about an inventory item. A JavaBeans component is needed to do this. The Inventoryltem class has private instance variables to store the item information:  10. private int itemId;  11. private String name;  12. private String description;  Which method signature follows the JavaBeans naming standards for modifying the itemld instance variable?() 

  • A、 itemID(int itemId)
  • B、 update(int itemId)
  • C、 setItemId(int itemId)
  • D、 mutateItemId(int itemId)
  • E、 updateItemID(int itemId)

参考答案

更多 “ A programmer is designing a class to encapsulate the information about an inventory item. A JavaBeans component is needed to do this. The Inventoryltem class has private instance variables to store the item information:  10. private int itemId;  11. private String name;  12. private String description;  Which method signature follows the JavaBeans naming standards for modifying the itemld instance variable?() A、 itemID(int itemId)B、 update(int itemId)C、 setItemId(int itemId)D、 mutateItemId(int itemId)E、 updateItemID(int itemId)” 相关考题
考题 升级CPLD的版本软件都有()? A.isPvMSysTeMB.qUArTUsii_PrOgrAMMer_sigNALTAPC.CPLD sOfTwAreD.wfTP32

考题 【S4】A.poetB.architectC.doctorD.programmer

考题 Given:What is the result when the programmer attempts to compile the code and run it with the command java Converter 12?() A. It is true that j==i.B. It is false that j==i.C. An exception is thrown at runtime.D. Compilation fails because of an error in line 13.

考题 Given:Which exception or error will be thrown when a programmer attempts to run this code?() A.java.lang.StackOverflowErrorB.java.lang.IllegalStateExceptionC.java.lang.ExceptionInInitializerErrorD.java.lang.ArrayIndexOutOfBoundsException

考题 A company that makes Computer Assisted Design (CAD) software has, within its application, some utility classes that are used to perform 3D rendering tasks. The company‘s chief scientist has just improved the performance of one of the utility classes‘ key rendering algorithms, and has assigned a programmer to replace the old algorithm with the new algorithm. When the programmer begins researching the utility classes, she is happy to discover that the algorithm to be replaced exists in only one class. The programmer reviews that class‘s API, and replaces the old algorithm with the new algorithm, being careful that her changes adhere strictly to the class‘s API. Once testing has begun, the programmer discovers that other classes that use the class she changed are no longer working properly.What design flaw is most likely the cause of these new bugs?()A.InheritanceB.Tight couplingC.Low cohesionD.High cohesionE.Loose couplingF.Object immutability

考题 阅读以下说明和Java代码,将应填入(n)处的字句写在对应栏内。[说明]本程序的功能是给公司的员工Tom,Jack,Green增加薪水。三人的职位分别是programmer, Manager,CEO。程序由6个类组成:WorkerTest是主类,programmer,Manager,CEO三个类,薪水增加的规则是 programmer的涨幅是5%;Manager的是10%;CEO也是Manager,但是它除了有Manager的涨幅,还有1000元的bonus。接口SalaryRaise提供了一个增加薪水的方法raise()。[java程序]public class WorkerTest {public WorkerTest( ) {}public static void main( String[] args) {Programmer programmer = new Programmer( "Tom" ,3000);Manager manager = new Manager( "Jack" ,4000);CEO ceo = new CEO( "Green" ,4000);Worker [] worker = new Worker[3];programmer, raise( );manager, raise( );ceo. raise( );worker[0] = programmer;worker [1] = manager;worker[2] = ceo;for ( int i = 0 ;i < worker, length; i + + ) {System. out. prinfln (" Name:" + worker [i]. getName ( ) +" \ tSalary:" + worker [i]. getSalary ());public interface SalaryRaise { void raise( ); }public class Worker {public String name;public double (1);public Worker( ) {}public String getName( ) {return name;}public void setName( String name) {this. name = name;}public double getSalary( ) {return salary;}public void setSalary(double salary) { this. salary = salary; }}public class Programmer extends Worker implements (2) {public Programmer( ) {}public void raise( ) {double pets=0.05;double sala = this. getSalary( ) * (1 + pers);this. setSalary (sala);public Programmer( Siring name, double salary) tthis. name = name;this. salary = salary;public class Manager extends (3) implements SalaryRaise {public Manager( ) { }public Manager(String name, double salary) {this. name = name;this. salary = salary;}public void raise( ) {double pets = 0.1;double sala = this. getSalary() * (1 + pers);this. setSalary(sala);}}public class CEO extends Manager implements SalaryRaise {public CEO() {}public CEO( String name,double salary) {this. name = name;this. salary = salary;}public void raise( ) {double bonus = 1000;(4);double sala = this. getSalary( );(5);this. setSalary(sala);}}

考题 A programmer must know about a function’s(74)to Call it correctly.A.locationB.algorithmC.InterfaceD.statements

考题 A programmer must know about a function's ______ to call it correctly.A.locationB.algorithmC.InterfaceD.statements

考题 字符串“programmer”中长度为4的子串有__(10)__个。A.4B.5C.6D.7

考题 In object-oriented(51), objects can be viewed as reusable components, and once the programmer has developed a(52)of these components, he can(53)the amount of new coding required. But(52)a(54)is no simple task because the integrity of the Original software design is critical. Reusability can be a mixed blessing for user, too, as a programmer has to be able to find the object he needs. But if(55)is your aim, reusability is worth the risk.A.programmingB.creatingC.indisposingD.libraryE.maximize

考题 A programmer wants to generate values for a numeric ID column in their EXPENSE table. The ID column values need to be incremented by 1000 for each new expense report added to the EXPENSE table. Which DB2 object can be referenced by an INSERT statement to meet thisrequirement?()A.SequenceB.Table FunctionC.Identity ColumnD.INSTEAD OF Trigger

考题 In ______ programming, the user determines the sequence of instructions to be executed, not programmer.A.top-downB.structureC.data-drivenD.event-driven

考题 My father is a programmer and he works in()AcomputerBcomputersCa computer

考题 Which can appropriately be thrown by a programmer using Java SE technology to create a desktop application?()A、ClassCastExceptionB、NullPointerExceptionC、NoClassDefFoundErrorD、NumberFormatExceptionE、ArrayIndexOutOfBoundsException

考题 A programmer has an algorithm that requires a java.util.List that provides an efficient implementation of add(0, object), but does NOT need to support quick random access. What supports these requirements?()A、java.util.QueueB、java.util.ArrayListC、java.util.LinearListD、java.util.LinkedList

考题 A programmer wants to generate values for a numeric ID column in their EXPENSE table. The ID column values need to be incremented by 1000 for each new expense report added to the EXPENSE table. Which DB2 object can be referenced by an INSERT statement to meet thisrequirement?()A、SequenceB、Table FunctionC、Identity ColumnD、INSTEAD OF Trigger

考题 jim ,a domino programmer, want to determine the number of working days in a year. Which one of the following formula should he use?()A、 @days B、 @holidays C、 @wokdeddays D、 @businessday

考题 public class Foo {  static int[] a;  static { a[0]=2; }  public static void main( String[] args) {}  }  Which exception or error will be thrown when a programmer attempts to run this code?() A、 java.lang. StackOverflowErrorB、 java.lang.IllegalStateExceptionC、 java.lang.ExceptionlnlnitializerErrorD、 java.lang.ArraylndexOutOfBoundsException

考题 多选题Which two are true?()AAn encapsulated, public class promotes re-use.BClasses that share the same interface are always tightly encapsulated.CAn encapsulated class allows subclasses to overload methods, but does NOT allow overriding methods.DAn encapsulated class allows a programmer to change an implementation without affecting outside code.

考题 单选题A programmer has an algorithm that requires a java.util.List that provides an efficient implementation of add(0, object), but does NOT need to support quick random access. What supports these requirements?()A java.util.QueueB java.util.ArrayListC java.util.LinearListD java.util.LinkedList

考题 单选题My father is a programmer and he works in()A computerB computersC a computer

考题 单选题A company that makes Computer Assisted Design (CAD) software has, within its application, some utilityclasses that are used to perform 3D rendering tasks. The company’s chief scientist has just improved theperformance of one of the utility classes’ key rendering algorithms, and has assigned a programmer toreplace the old algorithm with the new algorithm. When the programmer begins researching the utilityclasses, she is happy to discover that the algorithm to be replaced exists in only one class. The programmer reviews that class’s API, and replaces the old algorithm with the new algorithm, being carefulthat her changes adhere strictly to the class’s API. Once testing has begun, the programmer discovers thatother classes that use the class she changed are no longer working properly. What design flaw is mostlikely the cause of these new bugs?()A InheritanceB Tight couplingC Low cohesionD High cohesionE Loose coupling

考题 多选题A company has a business application that provides its users with many different reports: receivables reports, payables reports, revenue projects, and so on.The company has just purchased some new, state-of-the-art,wireless printers, and a programmer has been assigned the task of enhancing all of the reports to use not only the company’s old printers, but the new wireless printers as well.When the programmer starts looking into the application, the programmer discovers that because of the design of the application, it is necessary to make changes to each report to support the new printers.  Which two design concepts most likely explain the situation?()AInheritanceBLow cohesionCTight couplingDHigh cohesionELoose couplingFObject immutablility

考题 多选题A company has a business application that provides its users with many different reports: receivables reports, payables reports, revenue projects, and so on. The company has just purchased somenew, state-of-the-art, wireless printers, and a programmer has been assigned the task of enhancing all ofthe reports to use not only the company’s old printers, but the new wireless printers as well. When the programmer starts looking into the application, the programmer discovers that because of the design of theapplication, it is necessary to make changes to each report to support the new printers. Which two designconcepts most likely explain this situation? ()AInheritanceBLow cohesionCTight couplingDHigh cohesionELoose couplingFObject immutability

考题 单选题public interface A {  String DEFAULT_GREETING = “Hello World”;  public void method1();  }  A programmer wants to create an interface called B that has A as its parent. Which interface declaration is correct?()A  public interface B extends A {}B  public interface B implements A {}C  public interface B instanceOf A {}D  public interface B inheritsFrom A {}

考题 单选题jim ,a domino programmer, want to determine the number of working days in a year. Which one of the following formula should he use?()A  @days B  @holidays C  @wokdeddays D  @businessday

考题 单选题A company that makes Computer Assisted Design (CAD) software has, within its application, some utility classes that are used to perform 3D rendering tasks. The company's chief scientist has just improved the performance of one of the utility classes' key rendering algorithms, and has assigned a programmer to replace the old algorithm with the new algorithm. When the programmer begins researching the utility classes, she is happy to discover that the algorithm to be replaced exists in only one class. The programmer reviews that class's API, and replaces the old algorithm with the new algorithm, being careful that her changes adhere strictly to the class's API. Once testing has begun, the programmer discovers that other classes that use the class she changed are no longer working properly. What design flaw is most likely the cause of these new bugs?()A InheritanceB Tight couplingC Low cohesionD High cohesionE Loose couplingF Object immutability

考题 多选题Click the Exhibit button. What two must the programmer do to correct the compilation errors?()Ainsert a call to this() in the Car constructorBinsert a call to this() in the MeGo constructorCinsert a call to super() in the MeGo constructorDinsert a call to super(vin) in the MeGo constructorEchange the wheelCount variable in Car to protected