|
public declaration ('undeclaring')
This is probably more simple than the title, but here goes:
I have a class file that created VarClass as a public class.
public class VarClass
//{main{stuff}}
It compiles and works fine. But if I try to make, say, version 2 of it with the same named public class, javac simply says it should be declared in the first class. So my questions are: 1:doesn't it take ram space to remember that? and 2: how can i clear the computer of remembering. And if its a file that has to be edited, how can I tell java to do that?
I've heard of garbage collecting but I'm still learning so thanks.
|