javaadvent.com
Dynamic casting in Java - JVM Advent 2018
I’m a big fan of Baeldung’s blog. One of his previous post is about casting in Java. Unfortunately, I feel it misses one important point: dynamic casting. Since that’s is (very) relatively new, this post will try to fill that gap. Do not use casting The first thing is that it should be relatively easy to avoid casting. Using polymorphism …