title: Is there a way to instantiate a class by name in Java?
body: <p>I was looking as the question : <a href="https://stackoverflow.com/questions/9854900/instantiate-an-class-from-its-string-name">Instantiate a class from its string name</a> which describes how to instantiate a class when having its name. Is there a way to do it in Java? I will have the package name and class name and I need to be able to create an object having that particular name.</p>