Safe class imports from JAR Files <p>Consider a scenario that a java program imports the classes from jar files. If the same class resides in two or more jar files there could be a problem.</p> <blockquote> <ol> <li><p>In such scenarios what is the class that imported by the program? Is it the class with the older timestamp??</p></li> <li><p>What are the practices we can follow to avoid such complications.</p></li> </ol> </blockquote> <p>Edit : This is an example. I have 2 jar files my1.jar and my2.jar. Both the files contain com.mycompany.CrazyWriter</p>