欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

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)

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题