you are trying to instantiate an abstract class or interface. that's why InstantiationError is thrown.
As per the docs, it is stated as follows
public class InstantiationError extends IncompatibleClassChangeError
Thrown when an application tries to use the Java new construct to instantiate an abstract class or an interface.Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.