We should probably clean up our classes a bit before closing our third session. One thing I like to do is to make as many classes final as I can. That limits how another programmer might subclass it in a way I did not expect. I am quite happy to change that to be non-final if someone needs to subclass it, but then I would like to be part of the discussion as to how and why they want to do it.
There is a recommended order for all our modifiers, which I write about in my newsletter 293.
We hope you enjoyed this tutorial. If you did, you will also enjoy our courses. We suggest you start with Extreme Java - Advanced Java, followed by Extreme Java - Concurrency Performance for Java 8.
We deliver relevant courses, by top Java developers to produce more resourceful and efficient programmers within their organisations.
We can help make your Java application run faster and trouble-shoot concurrency and performance bugs...