File Extension FYI Center

File Extension JAVA - Java Source Code

File extension JAVA is used for Java source code files. A JAVA sample file is provided. Free Java source code compilers are listed.

File Extension: .JAVA

File Content: Java source code.

What is Java? Java is a programming language developed by Sun Microsystems in 1995.

JAVA is the file extension for files storing Java source code.

Software applications written in Java need to go through two steps to be executed:

  • Compilation - A Java compiler is used to compile Java source code reading from Java files, and generate bytecode writing to class files.
  • Execution - A Java Virtual Machine (JVM) is used to run bytecode on the underlying computer system.

JAVA files are text files, which can be edited by any text editors. Here is a sample JAVA file containing the source code of a very simple Java application:

public class Welcome {
  public static void main(String args[]) {
    System.out.print("Welcome to FYIcenter.com!");
  }
}

JAVA sample file: Click Welcome.java to download.

Java source code stored in JAVA files can be compiled by a number of free Java compilers:

Sections in This Chapter

File Extension JAVA - Java Source Code

File Extension CLASS - Java Bytecode

File Extension C - C Source Code

File Extension OBJ - Object Code

File Extension EXE - Executable Code

Updated in 2008
File Extension JAVA - Java Source Code