Question: Complete the following class. Make sure you handle any exceptions. import java.lang.reflect.*; public class ObjectFactory * Uses reflection to create an Object of a given

Complete the following class. Make sure you handle any exceptions. import java.lang.reflect.*; public class ObjectFactory * Uses reflection to create an Object of a given class * @param className The name of the class (e.g., String) * @return An instance of the given class public Object createObject(String className) YOUR CODE HERE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
