4.4.2.1.3 Sample Code Snippet to declare a Method which returns Boolean

If a method in the POJO class returns a Boolean value, prefix the method name with is instead of get, while defining the POJO class.

Class Abc {

private boolean var1;

public setVar1(boolean aa){
this.var1 = aa;
}
public boolean isVar1(){
return var1;
}
}