Java 8 Deprecated Example, Both actually mean that the class shouldn't be used in … This works for java 11.