Class load order testing
testjar1.jar
package com; public class TestJar { public String getVersion() { return "v1"; } }
testjar2.jar
package com; public class TestJar { public String getVersion() { return "v2"; } }
Project TestJavaLoad
Include
package com; public class TestJar { public String getVersion() { return "self"; } }
Sort by classpath to get three results
Obviously, whoever is in the front will be loaded first and will not be overwritten