Category Archives: Java

Building strings in Java

Building and manipulating strings is one of the most common task performed in any programming language. In Java, the String class provides the functionality of creating and manipulating the strings … Read more

Posted in Java, Tips and Tricks | Leave a comment

What are Factory Methods and Why Use Them?

The concept of factory methods is very useful and very simple at the same time. It is simple enough to explain and I would not need to write a long … Read more

Posted in Java, Tips and Tricks | 1 Comment

Java and memory

I wrote a Java application which, when run, requires quite a bit of memory and I started to get the OutOfMemory error: Error: java.lang.OutOfMemoryError: Java heap space This often happens … Read more

Posted in Java, Tips and Tricks | 1 Comment