Which two pairs of method declarations follow the JavaBeans standard for accessing this field?

A JavaBeans component has the following field:
11. private boolean enabled;
Which two pairs of method declarations follow the JavaBeans standard for accessing this field?
(Choose two.)

A JavaBeans component has the following field:
11. private boolean enabled;
Which two pairs of method declarations follow the JavaBeans standard for accessing this field?
(Choose two.)

A.
public void setEnabled( boolean enabled )
public void isEnabled()

B.
public boolean setEnabled( boolean enabled )
public boolean getEnabled()

C.
public void setEnabled( boolean enabled )
public boolean isEnabled()

D.
public void setEnabled( boolean enabled )
public boolean getEnabled()

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *