Don't talk about files.
In JAVA you have classes.
JAVA chose to put different classes into different
files with extension .class but it's only an implementation
choice!
Now the problem is class scope and not file path scope!
Luca Paganelli
"nos" <no*@nospam.com> wrote in message
news:dXeUb.180101$nt4.777913@attbi_s51...
I have two files in the same directory which is '.'
I have a method in file1 that I invoke from a
method in file2. Why do I have to use
class1.method1() instead of just method1().
The class1.method1() is public. Neither file
has a package statement so the default
package is used.