- We discussed Element Uniqueness problem using HashMap.
- Implemented a queue using 2 stacks. Link to the code on StackOverflow
- Quiz
Saturday, March 28, 2015
Wednesday, March 11, 2015
Few questions over the past few weeks
StringBuilder Vs StringBuffer
StringBuffer is synchronized, StringBuilder is not.
Both are mutable
The object created through StringBuffer & StringBuilder are stored in the heap .
StringBuffer is slow but thread safe . Due to this it does not allow two threads to simultaneously access the same method . Each method can be accessed by one thread at a time .
StringBuilder is fast as it is not thread safe.
Adding variable watch
While you're in the debugger go Window -> Debugger -> Variables
You will have <Enter new watch> written there. Type the variable you want to watch there and you can track it from there.
Subscribe to:
Comments (Atom)