Monthly Archives: December 2011

Java: Garbage Collector

Code samples in this post were compiled with a JDK 6. Garbage collection is one of the big advantages of Java. Many languages like C and C++ do not offer an automatic mechanism to perform memory management. Manually releasing every … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Java: Passing Variables into Methods

Java use pass-by-value semantics, instead of pass-by-reference, when passing variables to methods. During a method call for example, Java will copy values given by the caller and will pass them to the callee method. If the variable has a primitive type, … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment