
how many classes,References and objects in this following statement....
A a=new B();

Hi,
In the statement:
A a=new B();
There are 2 classes, Class A and Class B. References : 1 (Object of B is referenced by A) Variable: a
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.