Category Archives: Quick Tips

Java Memory Model, MultiThreading, Thread Priorities, Concurrency and Parallelism

Understanding MultiThreading In Java The semantics of multithreaded programs and the rules that says how the values may be seen by a read of shared memory that is updated by multiple threads are known as the Java programming language memory model. In this discussion we will see how Java threads are scheduled on different environments,… Read More »

Java Performance – String, StringBuffer and StringBuilder Memory and Runtime Analysis

We normally use many string instances in our applications. As we know String objects are immutable and their values cannot be changed after they are created. If you intend to use a string object that is dynamic, then StringBuffer or StringBuilder should be your choice. This is because both are mutable. String always creates a… Read More »