Which type of method modifies the object on which it

Info icon This is a preview. Sign up to view the full content.

View Full Document Right Arrow Icon
31) Which type of method modifies the object on which it is invoked? a- Constructor method. b- Static method. c- Accessor method. d- Mutator method.
Image of page 8
32) Which of the following is considered by the text to be the most important consideration when designing a class? a- Each class should represent an appropriate mathematical concept. b- Each class should represent a single concept or object from the problem domain. c- Each class should represent no more than three specific concepts d- Each class should represent multiple concepts only if they are closely related. 33) Consider the following code snippet: String[] data = { "abc", "def", "ghi", "jkl" };String [] data2; In Java 6 and later, which statement copies the data array to the data2 array? a- data2 = Arrays.copyOf(data, data2.length); b- data2 = Arrays.copyOf(data, data.length); c- data2 = Arrays.copyOf(data, data.size()); d- data2 = Arrays.copyOf(data); 34) When you start a Java program from a command line and supply argument values, the values ____
Image of page 9
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern