If a class defines the __str__(self) method, for an object obj for the class, you can use which command to invoke the __str__ method.
1. obj.__str__()
2.str(obj)
3.print obj
4. all of the mentioned
Answer:4
Posted Date:-2021-12-30 07:42:38
More MCQS Questions and answers
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!