Java: Difference between revisions

From Braindump
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
Invented in the '90-ies by SUN Microsystems, intended for interactive television.
Invented in the '90-ies by SUN Microsystems, intended for interactive television.
JRE tools including standard libraries and runtime JVM virtual machine
JDK compiles into JAVA bytecode.


SE Standard Edition
SE Standard Edition
Line 6: Line 11:


ME Micro Edition / JAVA Applets were discontinued
ME Micro Edition / JAVA Applets were discontinued
SUN Microsystems acquired by Oracle, license for large companies are now charged per virtual machine.


SUN Microsystems acquired by Oracle, license for large companies are now charged per virtual machine.
SUN Microsystems acquired by Oracle, license for large enterprises are now charged per virtual machine or for each virtual core supporting the JVM


OpenJDK builds: Microsoft, IBM, Redhat, SAP, Azul, etc
OpenJDK builds: Microsoft, IBM, Redhat, SAP, Azul, etc




with a JRE runtime and JDK compiles


.java is the source code, needs to have the same name as the class it defines and in the directory mentioned in the package
.java is the source code, needs to have the same name as the class it defines and in the directory mentioned in the package
Line 19: Line 24:


.jar is a zip file with classes
.jar is a zip file with classes
JAVA_HOME


JAVA_HOME
JAVA_HOME
Line 26: Line 32:
JDK_HOME
JDK_HOME


Alternatives
=== Derive Languages ===
 
Kotlin, Groovy, Ruby
google, ibm, microsoft implementations


language
=== Build tools ===
vm, memory, bytecode
ANT


java
Maven
scala
ruby
groovy


licensing
Gradle


object oriented class
object oriented class

Revision as of 09:52, 29 January 2026

Invented in the '90-ies by SUN Microsystems, intended for interactive television.

JRE tools including standard libraries and runtime JVM virtual machine

JDK compiles into JAVA bytecode.


SE Standard Edition

EE Enterprise Editions, adds tools and classes

ME Micro Edition / JAVA Applets were discontinued SUN Microsystems acquired by Oracle, license for large companies are now charged per virtual machine.

SUN Microsystems acquired by Oracle, license for large enterprises are now charged per virtual machine or for each virtual core supporting the JVM

OpenJDK builds: Microsoft, IBM, Redhat, SAP, Azul, etc


.java is the source code, needs to have the same name as the class it defines and in the directory mentioned in the package

.class compile java class, this can be run in the runtime.

.jar is a zip file with classes JAVA_HOME

JAVA_HOME

JRE_HOME

JDK_HOME

Derive Languages

Kotlin, Groovy, Ruby

Build tools

ANT

Maven

Gradle

object oriented class

/com/janmg/hello.java
package com.janmg
static void main(args)
{
   System.out.println("Hello World");
}
javac -cp / /com/janmg/hello.java
java -cp . hello

Maven

LOG4J