TCS Java Questions In TCS they asked some questions about Collections.Which method of Vector class is Synchronize?Can we write the keyword -Synchronized- before a class name?  Is it applicable or notCan we declare variables as Synchronize? then what what type of variables can we declare as Synchronized. Ex: instance variables, local variables etc..Please answer these questions. Thank you

Questions by vasishta

Showing Answers 1 - 3 of 3 Answers

rama reddy

  • Dec 3rd, 2010
 

The explanation is in the last line of the class Javadoc: Unlike the new collection implementations, Vector is synchronized. Vector is essentially a synchronized ArrayList

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions