Class InstantiationError in Java

Class InstantiationError in Java InstantiationError is thrown from an application when an application tries to use…