My laptop happened to get infected with this worm recently. The way it is written is silly enough to catch it up easily. At times I hate windows shell because of its vulnerability even to such silly programs.
Resource pooling is a common need among many software systems. There will be lots of questions once the high level design dectates that a particular resource/object needs to be pooled. People turn to container support, neighbhouring component implementations, open source implemenations etc.. before…
Do you know the below facts about constant pool?
1. Constants will not be initialized during compile time if the assigned constant cannot be computed during compile time.2. addition of two constant string literals will be performed during compile time by compiler3. Addition…
Writing concurrent execution modules is always tedious job. As most of the thread packages offer concurrency through locks, we should be careful about dealing with them. There is one side effect that compiler will not notice while we do this kind of programming. That is…
I always had problems with class loading. Be it a Java EE app or some proprietary framework that maintains its own class loader hierarchy, I would end up spending time on “Why my class is not getting loaded” kind of problems. I’m sure may of the developers/designers would have…
Deep cloning an object is not always needed to replicate objects. Doing deep cloning may give dreaded performance results based on the type of object (best example, yes you rightly guessed it, Hashmap). Hashmap’s clone() method does the shallow copy of the map keeping the object references same in both the…