6.1-6.7

Last Updated By keithrd498 on 05/06/2013
251 people took this quiz
  • Share
http%3A%2F%2Fwww.funnelbrain.com%2Fqc-186476-an-instance-of-a-class-does-not-have-to-exist-in-order-for-values-to-be-stored-in-a-class-static-fields.html

If you write a toString method for a class, Java will automatically call the method any time you concatenate an object of the class with a string.

Answer:
a)  True
b)  False
View as Flashcard Quiz
Related Quiz Content
  • keithrd498
    Answered in 6.1-6.7
    When a field is declared static, there will be __________.
    a)a copy of the field in each class object.
    b)only two copies of the field in memory.
    c)a copy of the field for each static method in the class.
    d)only one copy of the field in memory.
    d)only one copy of the field in memory.
  • keithrd498
    Answered in 6.1-6.7
    A method's signature consists of
    a)the method name
    b)the return type, the method name, and the parameter list
    c)the return type, and the method name
    d)the method name and the parameter list
    d)the method name and the parameter list
  • keithrd498
    Answered in 6.1-6.7
    If the following were all declared in the same class, Rect, which would be considered the no-arg constructor?
    (1) public Rect(int len, int width){...}
    (2) public Rect(double len, double width){...}
    (3) public Rect(){...}
    a)(1)
    b)(2)
    c)(3)
    d)Non of them, the Java compiler would furnish the default constructor.
    c)Non of them, the Java compiler would furnish the default constructor.
  • keithrd498
    Answered in 6.1-6.7
    When an object reference is passed to a method, the method may change the values in the object.
    a)True
    b)False
    a)False
Discussion Board
6 1 6 7
6.1-6.7
Quiz Taken:251 people took this quiz
Rate this Quiz
Teams
Quiz does not belong to any team.
Quiz Tags
Others Studying this Quiz
Free Quiz Question From 6.1-6.7
Question: If you write a toString method for a class, Java will automatically call the method any time you concatenate an object of the class with a string.
Answer:
True
False