Results of the NetBeans Platform Student Quiz 2
By Geertjan-Oracle on Mar 01, 2009
Below are the questions! The theme of this quiz was NetBeans API Javadoc. Simply be reading the Javadoc the whole quiz could be answered quite easily. See if you can answer them, before looking at the answers that follow. And note that all the suggested answers are REAL NetBeans API classes (i.e., I didn't make any of them up):
- I want to create hyperlinks in the Output window. Which NetBeans API class do I need?
- I want to enable my Explorer Views to be synchronized. Which NetBeans API class do I need?
- I want something special to happen whenever a NetBeans project builds. Which NetBeans API class do I need?
- I want to store a user's Options window settings on disk. Which NetBeans API class do I need?
B: System Options
- I want to change the application's title bar. Which NetBeans API class do I need?
- I want to persist my node across restarts of my application. Which NetBeans API class do I need?
- I want to include "Save" functionality in my application. Which NetBeans API class do I need?
- I want to create a new window in my application. Which NetBeans API class do I need?
- I want to process XML files. Which NetBeans API class do I need?
- I want to display a node to the user. Which NetBeans API class do I need?
Of the received entries only one was 100% correct, who will receive a NetBeans Platform book of his choice:
Two students got 1 wrong each and so will receive a NetBeans t-shirt each:
- Constantin Drabo
- Fionn Ziegler
Answers: A, A, B, A, B, C, A, B, A, B
The quiz was a little bit tricky! For example, "HyperlinkProvider" has nothing to do with the Output window. That's the factory class used for creating hyperlinks in the editor. Instead, the "OutputListener" is the class providing hyperlinks in the Output window. Another tricky question was the one about storing settings on disk. Sure, you'd use "SystemOptions", if you were using a pretty old version of the NetBeans Platform. However, since NetBeans Platform 6.0, you need the "NbPreferences" class instead. It's easy to use and it extends the JDK's own Preferences class (only difference is that the preferences are stored in the user directory, which is pretty handy). Another question that was a bit contentious was question 9 (after all, "XMLDataObject" is also for processing XML files, so either that or "XMLUtil" could have been a correct answer).
Those on the NetBeans Platform Students alias (i.e., anyone who has taken the NetBeans Platform Certified Training has access to this alias), will receive the next quiz in the next few days.