See all challenges
250p
Max points
19d 11h
Time remaining
powered by
Jobful
DESCRIPTION

Starting from the following Java class: 

 

Class Test {

             

              List list;

 

              Test(List list) {

 

              }

 

              List getList() {

 

              }

}

 

a. What would you need to do in order to make the class immutable?

b. How would you write unit tests for the immutable class?

Close
Login
Close
Login as a company
New company? Register here Did you forget the password?
Close
Register as a candidate
Already have an account? .

Alternately you can

or
Close
Register as a company
Already have an account? .
Close
Retrieve password
Close
Register as a recruiter
Already have an account? .
Close
Retrieve password