Tag Archives: java

Java Performance: what developers must know

Developers (me included) generally focus more on make it work and make it right and less on make fast. Consequence: our applications slow down, and frequently we realize that too late. In this presentation, I list some tips that helped … Continue reading

Posted in Java, Speech | Tagged , | 1 Comment

Java: Inner Classes

Since Java 1.1, when inner classes were first introduced, they have started a lot of discussion. Some people like them and find them useful. Others hate them. Viewpoints apart, the fact is that inner classes can be efficient in many situations … Continue reading

Posted in Java | Tagged , | 1 Comment

Java: Generic Types

Before Java 5, it was not possible to tell to a collection (like a List, a Map or a Set) only to accept objects of a specific type. At that moment, collections could hold anything that was not a primitive type (which are … Continue reading

Posted in Java | Tagged , | Leave a comment

Java: Operators

As in mathematics, operators in Java are used to produce new values from operands. Choosing the right operator on the right time will help you to write clear code in a fast way. Following a quick review of Java operators. Examples … Continue reading

Posted in Java | Tagged , | Leave a comment

Java: Garbage Collector

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 object which is not used anymore could become a fastidious and really difficult … Continue reading

Posted in Java | 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. This means that Java copies the variable values used by the caller to pass them to the method. If the variable has a primitive type, the value of the … Continue reading

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

Java: Assignments

To start talking about assignments we need to remember some important concepts like heap and stack. The heap is a memory section where the JVM keep its objects. A stack is a memory section which contains methods and local variables. … Continue reading

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