"throws" means just a possibility. It can happen, and it can never happen. By the way, when I want to test something quickly, I often do it in the main method with following signature:


public...