|
Change the name of the version_2 class or remove the version_1 source file from the current directory or put it into another folder in the current directory. Java cannot deal with multiple files with the same public, outer class_name in the same folder at compile time.
The garbage collector functions during runtime to remove objects from the jvm (java virtual machine) after there are no more references to them (the objects).
|