How does Vector implement synchronization?
Vector class by defualt is thread safe, thus all methods of Vector class are synchronized.