I will appreciate the help on this :
why we use below syntax for object creation :
A a = new A();
Why we are using default constructor? even if my class structure is like
class A{
public static void main(String[] aregs)
{
A a = new A();
}
}
I have not declare any instance variable then why i need default constructor ?
Why we have constructor name same as class name?
does constructor return any value or reference.