srinivas sy wrote:Is there any diff we see here??
Probably not now, since
Vector has been retro-fitted to implement the
List interface (it didn't originally).
It is however possible that
Vector's synchronization might be slightly more "refined".
Collections.synchronizedList() simply wraps a
List in an object that synchronizes ALL its methods, whereas Vector's might be a bit more "tailored" - but you basically have no way of knowing without looking at the source code.
However, as I pointed out in your other
thread:
Vector is a "legacy" class and, as such, its use it generally discouraged.
Winston