public class Test { private final String s; boolean b; double d; public Test() { b = true; } public Test(String s) { this.s = s; } }