Abstract classes vs. interfaces in Java

Abstract classes and interfaces are plentiful in Java code, and even in the Java Development Kit (JDK) itself. Each code element serves a fundamental purpose: Interfaces are a kind of code contractwhich must be implemented by a concrete class. Abstract classes are similar to normal classes, with the difference that they can include abstract methods, … Read more

java – JAXB – Unmarshalling of abstract classes (InstantiationException)

I know, that it might seem that this question is a duplicate of this one: InstantiationException during JAXB Unmarshalling (abstract base class, with @XmlSeeAlso concrete sub class) However, it is slightly different: We are using the maven-jaxb2-plugin to generate our Java-classes from xsd-files. You can find them here. In our pom we are using the … Read more