多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

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)
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题