<< NetBeans 6.0: A Week Later, And A Much Better Story | Home | Closures In Java >>

Friday Java Quiz: Know Your java.beans Classes

Adam reminded me that I haven't posted my Friday Java Quiz yet. So here's a quick one: What will this program print:

public class Foo {
  public static void main(String[] args) {
    System.out.println(
        java.beans.Introspector.decapitalize("HTMLParser"));
  }
}

The same rules: no actually using the compiler or searching the internet for answers.

Tags :


Re: Friday Java Quiz: Know Your java.beans Classes

Is this supposed to be a trick question?

Re: Friday Java Quiz: Know Your java.beans Classes

Yes, it is a trick question.

Re: Friday Java Quiz: Know Your java.beans Classes

Since you don't say System.out.println(...), I guess nothing.

Re: Friday Java Quiz: Know Your java.beans Classes

Silly me. I should have included the "System.out.println()" in the program.

Thanks for pointing this out. I'll update the entry.

Re: Friday Java Quiz: Know Your java.beans Classes

So I guess it's not a trick question then... I'm glad you put this up though, I think there's some code in my product at work that someone wrote custom code instead of using this. Definitely need to check that out now.

Add a comment Send a TrackBack