A friend of mine was asked that question in his on-phone job interview a couple of days a go. I don\'t have a clue. can anyone suggest a solution? (His job interview is ov
public class Immutable { private int val; public Immutable(int v) { this.val = v; } public int getVal() { return this.val; } }