bashir adil wrote:i need to check out the memory usage of my whole program, but for this piece of code i am confused about itz memory usage.
Sorry but I think you have an impossible task. I'd be surprised if this is the only class you are 'confused about' since your program will likely be using hundreds of classes most being more complex than java.util.Random. What makes java.util.Random more confusing than say the String class or the PrintStream class that you use when using System.out ?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com