Java: Difference between revisions
No edit summary |
|||
| Line 33: | Line 33: | ||
=== Derive Languages === | === Derive Languages === | ||
Kotlin, Groovy, Ruby | Kotlin, Scala, Groovy, Ruby | ||
=== Build tools === | === Build tools === | ||
| Line 42: | Line 42: | ||
Gradle | Gradle | ||
object oriented class | === object oriented class === | ||
/com/janmg/hello.java | /com/janmg/hello.java | ||
package com.janmg | package com.janmg | ||
Revision as of 09:53, 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, Scala, 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