Card 15 / 42: Which of the following methods follow the JavaBean standards?
A)
public void addJCListener(JCListener listener)
B)
void setName(String name)
C)
public void removeJCListener(MCListener listener)
D)
public boolean isDeleted()
E)
public void fetchName(String name)
Answer:
A) public void addJCListener(JCListener listener)
D) public boolean isDeleted()
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
It is getXXX() and setXXX() not fetchXXX()
When adding and removing listeners, type of Listener must match the name used in the method