Gett interview question

is the above implementation is thread safety

Interview Answer

Anonymous

10 July 2018

added the synchronized key word in the method implementation