Question 3
Back to Exercise
By JavaBeans convention, what is the getter for a boolean field active?
- A getActive() only
- B isActive() Correct
- C active()
- D hasActive()
Correct Answer: Option B
getActive() is also accepted by many tools, but isActive() is the convention.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!