|Java source file|
|Internet media type||text/java|
|Uniform type identifier||com.sun.java-source|
|Developed by||Oracle +|
|File formats category -|
A Java source file is a file containing Java source code.
By convention, a single file must contain exactly one public class, and the file must be named after that class. It may contain any number of private classes. The corresponding bytecode can be considered executable when it has a shared main method, which is called by the virtual machine upon execution.
- Java bytecode (.class)