devxlogo

January 7, 2009

Using the Final Keyword in Java

Contrary to popular opinion, the compiler cannot safely inline methods that have been declared as final. This is because these methods may have non-final declarations at runtime. For example, suppose

Trimming Items in a String Array

When you use a For Each loop to iterate through a String Array and perform some action with each item, the change doesn’t affect the String Array itself. Consider the