Monthly Archives: December 2008

Can you guess the output? junit and initialization

Can you guess the output without running the code? The relation to Eclipse is simply the fact that big part of eclipse.org is a great example of good test coverage built on top of jUnit. Plus, it was literally pulling my hair out in one of the eclipse-related testing-suites. I stepped into this a few [...]

Ericsson comes out with the Android phone – mid-2009

According to http://www.ericsson.com/ericsson/press/releases/20081209-1276213.shtml Ericsson joined Open Handset Alliance. Yei! This means Ericsson ongoing support for open source and more importantly Google-backed Android platform. Ericsson will be offering Android-based phones mid-2009. Excellent news! I’m glad to see strong phone manufacturer joining the Alliance. As I understand, currently only Nokia and RIM (blackberrry) from the “big players [...]

Java Quiz of The Day – same private field instance for two classes

What is the smallest change to main method that makes it sysout “true”? You are allowed to change ONLY the main method! Of course changing sysout line is out of question. You can leave your answer in comments and I’ll publish/approve them together with the solution. [java] public class InstanceDemo { public static void main(String[] [...]