Foamy: No matter what color it is, you should check in with your doctor if it consistently looks foamy and frothy. It may be a sign you have protein in your urine, which may mean you have issues with your kidneys. Pee doesnât usually have a strong smell.
If the file cannot be found, the exception is caught in the catch-block. In this example, the error handler simply prints the stack trace, which provides useful information for debugging. In some situations, you may need to perform some clean-up operations, or open another file instead.
Catching exceptions. To catch an exception in Java, you write a try block with one or more catch clauses. Each catch clause specifies one exception type that it is prepared to handle. The try block places a fence around a bit of code that is under the watchful eye of the associated catchers.