Which of the following is true regarding objects created from immutable classes?
A) It is safe to give out references to immutable class objects freely.
B) An immutable object can only be modified by its mutator method.
C) It is not advisable to return immutable object references from accessor methods.
D) Immutable classes do not have constructors.
Correct Answer:
Verified
Q20: Why is it generally considered good practice
Q21: Which statement is true for syntactically correct
Q22: Mutator methods exhibit which of the following
Q23: Which of the following is true regarding
Q24: Which of the following is an example
Q26: Which is an example of a class
Q27: What is the name of a class
Q28: Consider the partial Date class below which
Q29: Why can't Java methods change parameters of
Q30: In Java, which of the following mechanisms
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents