I am not able to understand the objects are created in the program,but they are not used to call toString method.Still it is executed.and in
System.out.println we are using reference to the same class (or object of that class).
Can anyone help me to understand the program.
Please help me to understand this program.
Resolved
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Khurram
27 November 2018, 06:20solution
check the link below for more information about toString()
https://www.javatpoint.com/understanding-toString()-method
+4
Swati
27 November 2018, 06:46
Thank you.Understood this.Thanks for such a simple,small and understandable article.
0