JAVA File Documentation
Overview
Feature | Value |
---|---|
File Extension | .java |
File Type | Java Source Code File |
MIME Type | text/x-java-source , text/plain |
Default Encoding | UTF-8 |
Programming Language | Java |
Developed by | James Gosling at Sun Microsystems |
Release Year | 1995 |
Primary Use | Software Development |
Characteristics | Object-oriented, Concurrent, Class-based |
Compilation | Compiles to bytecode (.class files) for the Java Virtual Machine (JVM) |
Comment Syntax | // for single line, /* */ for multi-line, /** */ for documentation |
Package Declaration Syntax | package com.example; |
Import Statement Syntax | import java.util.*; |
File Structure | Typically contains one public class or interface |
Method Declaration Syntax | public void methodName() { } |
Variable Declaration Syntax | int number = 10; |
Class Declaration Syntax | public class ClassName { } |
Interface Declaration Syntax | public interface InterfaceName { } |
Annotation Syntax | @Override , @Deprecated , etc. |
Executable Through | Java Development Kit (JDK) |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.