I have the following strange issue. The constructor is not getting called. Does this mean that constructor can only be called if the object of this class is made in some other class.
Code:public class Test {
public void Test()
{
System.out.println("Constructor called.");
}
public static void main(String[] args) {
Test obj = new Test();
}
}
