• + 1 comment

    That's interesting, I had read somewhere that everything in Java has to be part of a class. So it is possible to declare a variable outside of a class, just floating in the file ? Would this be called a 'global' or 'package' variable ?