If you compile with the exact same compiler in the exact same enviornment, it is highly likely that you will get identical class files.
However, if there are variations in compiler or platform, you should look at this discussion.
Outside of that, you will probably have to evaluate it functionally. That is, write a test class that exercises all desired behaviors of each class and check whether they all return identical results.