September 03, 2007

Some lines these

A love is immortalized even as it dies...
A union is celebrated even as it breaks...
A hero is born, even as he is defeated...

September 01, 2007

Java Lessons - part 1

My java learnings for the day -
1. Always implement toString - It seriously is a pain for otherwise to decode the object.
2. Be aware of memory leaks! Nullify object references when required but NOT always. At times trust the garbage collector ;).
3. Evaluate static factory methods vs. constructors.
4. Singletons are a great way to ensure single object instance.
5. Object creation is costly! It hurts performance many times over. Create only when you should.