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.
You must be signed in to leave a comment
27 November 2018, 06:20
check the link below for more information about toString() https://www.javatpoint.com/understanding-toString()-method
27 November 2018, 06:46
Thank you.Understood this.Thanks for such a simple,small and understandable article.