[Solved] How to fix java.lang.InstantiationException

What is java.lang.InstantiationException? A java.lang.InstantiationException is thrown when JVM cannot instantiate a type at runtime. To make this definition more elaborate. A java.lang.InstantiationException can be thrown when you try to create an instance of a non-instantiable type or a legit concrete class without having nullary constructor, dynamically during runtime using Class.newInstance() method. To be more … Read more