Question: Is this method signature valid?

```
public Boolean isBikeTyreFlat(){}

```

Note that I am trying to return an Object not a primitive here.

Thanks :)

Answer: 
In JavaBeans, the getter method for `boolean` can be `getXXX()` or `isXXX()`. Since `Boolean` is not a primitive type, a `getXXX()` is required. The `isXXX()` is only for the boolean primitive type (thanks @Kemoda).

Refer to [section 8.3.2 of the JavaBeans Specification](http://download.oracle.com/otndocs/jcp/7224-javabeans-1.01-fr-spec-oth-JSpec/).
In strict JavaBeans, this is a valid name (see the answer of @TheEliteGentleman).

However, please make sure you are not doing something like this:

```
public class BikeTyre {
    private boolean flat;
    public Boolean isBikeTyreFlat() {
        return flat;
    }
}

```

This is not recommended, since the name of your field does not match the method name. Some frameworks allow adding annotations to both the internal Field and the getter/setter of a Java Bean; the mismatch could confuse these frameworks. Please also note that it is bad practice to add the class name to your field; your method should just be `isFlat()`.

Of course, this is perfectly valid:

```
public class Unicycle {
    private boolean bikeTyreFlat;
    public Boolean isBikeTyreFlat() {
        return bikeTyreFlat;
    }
}

```

But then again, are you really modelling unicycles? ;-)