Compile all the classes through the command line.
Run the CustomLoaderDriver class by passing three arguments. The first argument is the fully classified name for Test1 class that will get loaded by custom class loader. Other two arguments are passed along to the Test1 class main function and Test2 constructor.
e.g java CustomLoaderDriver com.monali.classes.Test1 1212 1313