Robert

69%
Flag icon
Methods that return a boolean value usually have names that begin with the word is or, less commonly, has, followed by a noun, noun phrase, or any word or phrase that functions as an adjective, for example, isDigit, isProbablePrime, isEmpty, isEnabled, or hasSiblings.
Robert
Personally, I'm open to any sort of prefix that implies yes/no when is/has are awkward.
Effective Java
Rate this book
Clear rating
Open Preview