Java View all facts Glossary Help |
| file > source file |
| source file | ||||
| subject | fact | |||
| source file |
| ![]() |
| ![]() | |
can use the import statement to use the facilities of another package ![]() | ![]() | |
| has definition A file that contains source code | ![]() | |
| has example the file called Demonstrate.java contains the class Demonstrate | ![]() | |
| has extension .java | ![]() | |
| is a subtopic of How Java Works | ![]() | |
| is a kind of file | ![]() | |
| may contain | ![]() | |
| may contain more that one class but only one class can be public | ![]() | |
| should be in a directory whose name reflects the name of the package to which the source code belongs | ![]() | |
should declare the package to which its class belongs using the package keyword ![]() | ![]() | |
| file | is the smallest unit of source code that can be compiled | ![]() |