Java tips: Avoid runtime type checks

Runtime type checks involve if statements and the instanceof operator, which leads to brittle code.
If you forget to update a runtime type check as your application requirements evolve, you could subsequently introduce bugs.

Popular posts from this blog

How to delete / clear queue of PowerMTA