public class Main{
public staic void main(String[] args){
System.out.println(Class.forName("a.b.old.C"));
}
}
Class.forName needs to be changed due to some special requirements, and when using this method, if the package name of the passed class contains a certain path, it will be replaced with another path. For example, the class obtained by Class.forName ("a.b.old.XXX") will be "a.b.new.XXX".
ask me how to achieve the appeal effect, and can not modify the rt.jar