IT 114: Introduction to Java
Answers to Class 28 Ungraded Quiz
What is the name of the method Java will automatically call when you try to print an object?
toString
What must the name of a constructor be?
the same as the class name?
Does a constructor have a return type in the header?
no
Does the constructor contain a return statement?
no
What is the default value for an integer field?
0
What is the default value of a field that points to an object?
null
What is the keyword that points to the object itself within a class declaration>
thix