You can create an object of the class named Class in two ways −
Using new keyword as −
Class obj = new Class();
Using the forName() method of the class named Class.
Class obj = Class.forName("DemoTest");