NatWest Group interview question

object level lock vs class level lock