Working with the NetBeans Java editor is such a joy. Recently I discovered that code completion is context sensitive. When we create a new variable and press Ctrl+Space after the new
keyword we get a list of classes in alphabetical order. But notice the classes which are extended from the base class are at the top of the list. The following screenshot shows all allowed classes for the variable with base type java.lang.Number
: