• Why use Java? (Continued)
    Java Catches Common Errors:
    Java is setup to gracefully catch common programming errors and handle them with an exception that indicates the line in the code where the problem occurred. For example,
    • If you try to access a null pointer, Java throws a NullPointerException.
    • If you try to access outside the bounds of an array, Java throws an ArrayIndexOutOfBoundsException.
    • etc.
    Java has Reflection.
    Reflection allows a running Java program to look at itself in the mirror and see what classes and methods are available.
    This allows a Java program to find methods and then call them while the program is running.
    NeXtMidas takes advantage of this by allowing users to call Java methods from the shell.
    Java Strings Use Unicode
    Not everyone uses American English, sometimes they use characters that aren't just A-to-Z. Unicode allows easy manipulation of non-western character sets.