Your email address belongs to a school and you are eligible for a free educational premium account.
Learn more

JAVA - Java Source Code File

What is a JAVA file

Files containing source code written in the programming language Java are saved with the JAVA file extension. These files can be further compiled into CLASS files using a Java Compiler. Many applications and websites are coded in Java or use Java components for different functions.

JAVA files contain Java source code stored in a plain text format. Java is an object-oriented programming language. The data in the JAVA file, structured using classes, is used to instantiate different objects at a certain runtime.

Here's a small, but not exhaustive list of programs that can open JAVA documents:

  • Apple Xcode (Mac)
  • Eclipse IDE for Java Developers (Windows, Mac & Linux)
  • ES-Computing EditPlus (Windows)
  • Google Android Studio (Windows, Mac & Linux)
  • GNU Emacs (Linux)
  • gVim (Windows)
  • javac (Linux)
  • MacoMates TextMate (Mac)
  • MacVim (Mac)
  • Microsoft Notepad (Windows)
  • Oracle Java Virtual Machine (Windows, Mac & Linux)
  • Oracle NetBeans (Windows, Mac & Linux)
  • Vi (Linux)
  • Xinox JCreator (Windows)
  • Any Text Editor
Extension JAVA
MIME type text/x-java-source, text/java, text/x-java, application/ms-java, text/plain
Useful links