is possible to set a default value in java object? :     class Person {
       private String name;
       private String sex="male";
       public Person(String name) {
           this.name = name;
       }
       public String getSex(){return this.sex;}
    }

In the above class, if I want to set the default value for sex. is it ok?
then, if I want to create new Person, is the following code good?

    Person p = new Person("mike');
    String sex = p.getSex();

