Please enable JavaScript to use CodeHS

CodeHS Glossary


toString Method Java

A specific accessor method that returns a String value with information about an object’s instance values. This overrides the object’s inherit toString method when an object is printed using System.out.print or System.out.println