posted 19 years ago
In other words, if you have, in one file:
---Sample.java---
// First class defined
public class Sample {
// Second class defined
class Foo implements Bar {
...
};
private func() {
// Third class defined
blah = new Comparable() {
...
};
}
}
// Fourth class defined
class YaYaYa {
}
See how four separate classes have been defined in this example? One .java file will create four .class files. Why? That's just the way they did it, I don't know.
SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)