For a boolean field, what is the naming convention for its getter/setter?
Eg. boolean isCurrent = false; What do you name its getter and setter? Suppose you have boolean active; Accessors method would be public boolean isActive(){return this.active;} public void setActive(boolean active){this.active = active;} See Also Java Programming/Java Beans Code Conventions for the Java Programming Language Narayan http://geosoft.no/development/javastyle.html#Specific is prefix should be used for boolean variables and methods. isSet , isVisible , isFinished , isFound , isOpen This is the naming convention for boolean methods and variables used by Sun for the Java core packages