in this program when you compile it, don't give u any problem. but when you run, doesn't work,
public class Test {
String text;
public void Test(String s) {
this.text = s;
}
public static void main (String[ ] args) {
Test test = new Test("ABC");
System.out.println(test);
}
}