Why can't/doesn't the compiler automatically cast on assingment to the type on the left of the assignment?
A sample code to expose the secret Calendars in your JDK.
I want to know how a Java programmer and a UI designer would work together -- one using Java for the business logic, event handlers, and models, and the other using JavaFX Script.
I was using this Java idiom today, not for the first time, and thought I'd blog it for people not aware of it. You probably know that if you compare two objects x and y using x.equals(y), the result will be false if they are distinct arrays, even if their contents are the same. There is an easy way to get the right result for arrays.
When you create an i18n file, you must escape some special characters with a preceding backslash, right? :value! or \:value\! ?
Why no-one really wants software updates and what we can do about it.
The Java Black Belt competition during Jazoon'07 was a fun and exciting moment, all
those geeks competing for the great prize in front a large audience. As an old Java developer
I obviously tried and I guess my performance was pretty well.
Some things that look ok at first can cause major problems. One of them is returning in a finally clause.
Tips on how variables should be declared
The Sun Developer Network has a few newsletters that you can subscribe to. One of the newsletters is Core Java Technologies Tech Tips. I still can't see that title without smiling. I'm always amused that Sun's proper use of the word "Java" must always have an approved noun after it: Java language, Java platform, Java technologies. It doesn't matter that Java Technologies Tech Tips sounds...
Imagine you are starting a new project and you can adopt anything you want to produce a web-application or a desktop client. What kind of technology would you prefer? Why?
Do you iterator with "for" or "while" (when using pre-1.5)?
JavaBlackBelt Challenge will be held at Jazoon'07, your chance to prove your Java skills against your international opponents.
Would it be beneficial to make all static methods start with an upper case letter?
How can stack trace messages be improved?
Should developers write the documentation for the products that they code?
ELCA announced an entry level scriptlet competition at Jazoon'07,
with focus on innovative thinking and rapid application development based on the new features of the JDK 6 or based on Groovy.
Sometimes you need to clone objects, and sometimes you can't
use their clone method, and sometimes serialization provides an
alternative. Here's an explanation of when you might need this
exotic and expensive technique, and how you can use it.
If you've ever made a serious effort to get rid of "unchecked" warnings from the Java compiler (the ones it gives you with -Xlint:unchecked) then you'll probably have found some cases where you know a cast is correct but you can't convince the compiler of it. Is there anything better than adding @SuppressWarnings("unchecked") around the whole method?
Are programmers able to distinguish an API from the marketing? Do they need to have shine to get interested in something?