Returning void on a constructor makes the constructor not a constructor. Instead, you had a method with the same name as the constructor, which is immensely confusing. To be honest, I didn't think it would compile like that, but it does. IRAD does indeed give a warning.
The code below has the void removed. This will give you the results you expect.
Regards,
-Cameron McKenzie
public class Objective14 {
String s;
/*Constructor does NOT have a return type*/
public Objective14(){
s = "Constructor";
}
public void printString() {
System.out.println("s="+s);
}
public static void main(String args[]) {
Objective14 o = new Objective14();
o.printString();
}
}