Solera Interview Question

Immutability, MySql fourth largest salary, how can I make my class immutable, what are different immutable classes in Java, thread synchronisation and how is it achieved, what is the overhead with using threads, an array is given with 0's and 1's only, I have to bring all 0 to left and all 1 to right. Overall it was 30 min first round.