Suppose 'sample' is the class name,then the syntax is as follows
Object object4 = sample.class.getClassLoader().loadClass("abc.com.xyz.sample").newInstance(
How object can be created using clone() in java?
How object can be created using Class.forName()in java?
What is the difference between class and object in java?
How object can be created using new keyword in java?
In how many ways object can be created in java?