Java source file

Filename extension .java
Internet media type text/java
Uniform type identifier
Developed by Oracle +
Type Source file
File formats category - v  e   edit

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.

See alsoEdit