The Unknown value (?) appears as a null value in Java. For any ABL user-defined function that returns the Unknown value (?) as a primitive Java data type, this raises an exception in the interface method that calls this function. The client must compensate for this by catching the exception, as follows:

catch (NullPointerException con)
{
    System.err.println("The total Orders are: 0 (unknown)");
}