Can a java classloader load a class more than once
问题 Can a java classloader load a class more than once, ie load new versions of a class, without throwing a LinkageError of "duplicate class definition"? In other words, if we need to dynamically reload a class, can this be done with the same classloader, or does the classloader have to be destroyed first and a new one be created that will load the new version of the class? 回答1: A classloader can only actually load a class once! That means that it can only define it once. It can load it many