public class C {
    private String x = "";

    public String getX() {
        return x;
    }

    public void setX(String value) {
        System.out.println("setter invoked");
        x = value;
    }
}