Category:Java: Difference between revisions

From Rosetta Code
Content added Content deleted
(Fixed all misconceptions (YOUR WELCOME))
m (defunct)
 
(43 intermediate revisions by 14 users not shown)
Line 1: Line 1:
{{language
{{language|Java}}The '''Java''' programming language, developed by [[Sun Microsystems]], is a language aimed at allowing "high-performance", virtual application development.
|exec=bytecode

|site=http://www.oracle.com/technetwork/java/
Java source files (.java files) are typically [[Compiler|compiled]] to an intermediate [[bytecode]] language (.class files) and executed by a [[Java Virtual Machine]]. Most modern JVMs further compile the bytecode into your processor's native machine code during execution. This native code translation is done via a [[Just-In-Time|JIT]] compiler that is built in to the JVM. Some Java compilers (such as [[GCJ]]) can compile Java code to native machine code ahead-of-time rather than just-in-time.
|gc=yes
|parampass=value
|safety=safe
|express=explicit
|compat=nominative
|checking=static
|strength=strong
|tags=java, java5
|hopl id=2131
|LCT=yes
|bnf=http://www.cui.unige.ch/db-research/Enseignement/analyseinfo/JAVA/BNFindex.html}}
{{language programming paradigm|Object-oriented}}
{{language programming paradigm|Imperative}}
{{language programming paradigm|generic}}
{{language programming paradigm|reflective}}[[runs on vm::java virtual machine| ]]
The '''Java''' programming language, developed by [[Sun Microsystems]], is a language aimed at allowing "high-performance", virtual application development.


Java source files (.java files) are typically [[Compiler|compiled]] to an intermediate [[bytecode]] (all platform) executable (.class files) and executed by a [[Java Virtual Machine]].
Most modern JVMs further compile the bytecode into your processor's native machine code during execution.
This native code translation is mostly done via a [[Just-In-Time|JIT]] compiler that is built in the JVM. Some Java compilers (such as [[GCJ]]) can compile Java code to native machine code ahead-of-time rather than just-in-time.


The primary benefits of Java are:
The primary benefits of Java are:
* Cross-[[platform]] (Write Once, Run Anywhere (if all of the libraries are ported))
* Cross-[[platform]] (Write Once, Run Anywhere (if all of the libraries are ported))
* Comprehensive class library (which is very well [http://java.sun.com/javase/reference/api.jsp documented])
* Comprehensive class library (which is thoroughly [http://www.oracle.com/technetwork/java/javase/documentation/index.html documented])
* [[garbage collection|Automatic memory management]] (So users don't have to learn memory management)
* [[garbage collection|Automatic memory management]]
* Huge user community
* Large user community
* Well supported by the [[open source]] community and commercial industry ([[Sun Microsystems|Sun]], [[IBM]], [[Oracle]], HP, BEA, [[Mac OS X|Apple]], etc.)
* Well supported by the [[open source]] community and commercial industry ([[Sun Microsystems|Sun]], [[IBM]], [[Oracle]], HP, BEA, [[Apple Inc]], etc.)


The primary flaws of Java are:
* "High performance" (Java code running with a modern JIT is NOT comparable to the speed of efficient [[C++]])
* Not compiled (Allowing for super-duper speed?)
* "You acknowledge that Software is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility." -See the EULA



Java is used in a variety of environments including desktop applications, embedded device (PDA and wireless phone) applications, server-side web page serving applications (as [[Java Server Pages|JSP]]), and applets embedded in web pages.
Java is used in a variety of environments including desktop applications, embedded device (PDA and wireless phone) applications, server-side web page serving applications (as [[Java Server Pages|JSP]]), and applets embedded in web pages.


There are a variety of arguments regarding Java's performance compared to other popular languages like [[C++]]. Some come to the conclusion that the programmer's choices make a bigger difference on performance in each language. Most show that each language is better than the other at specific types of operations (e.g. Java for memory allocation, C++ for numerical operations).
According to a variety of [http://www.tiobe.com/tpci.htm sources], Java is currently the most popular programming language in the world.
An extensive summary of comparisons between Java and C++ can be found [[wp:Comparison of Java and C++|on Wikipedia]].


According to some [http://www.tiobe.com/tpci.htm sources], Java is currently one of the most popular programming languages in the world.


Useful Java links:
Useful Java links:
* [http://www.java.com java.com]
* [http://www.java.com java.com]
* [http://www.java.net java.net]
* [http://openjdk.java.net OpenJDK]

* [http://java.sun.com java.sun.com]
==Todo==
* [http://openjdk.dev.java.net OpenJDK]
[[Reports:Tasks_not_implemented_in_Java]]

Latest revision as of 07:11, 27 November 2019

Language
Java
This programming language may be used to instruct a computer to perform a task.
Official website
Execution method: Compiled (bytecode)
Garbage collected: Yes
Parameter passing methods: By value
Type safety: Safe
Type strength: Strong
Type compatibility: Nominative
Type expression: Explicit
Type checking: Static
Lang tag(s): java, java5
See Also:
Listed below are all of the tasks on Rosetta Code which have been solved using Java.

The Java programming language, developed by Sun Microsystems, is a language aimed at allowing "high-performance", virtual application development.

Java source files (.java files) are typically compiled to an intermediate bytecode (all platform) executable (.class files) and executed by a Java Virtual Machine. Most modern JVMs further compile the bytecode into your processor's native machine code during execution. This native code translation is mostly done via a JIT compiler that is built in the JVM. Some Java compilers (such as GCJ) can compile Java code to native machine code ahead-of-time rather than just-in-time.

The primary benefits of Java are:

Java is used in a variety of environments including desktop applications, embedded device (PDA and wireless phone) applications, server-side web page serving applications (as JSP), and applets embedded in web pages.

There are a variety of arguments regarding Java's performance compared to other popular languages like C++. Some come to the conclusion that the programmer's choices make a bigger difference on performance in each language. Most show that each language is better than the other at specific types of operations (e.g. Java for memory allocation, C++ for numerical operations). An extensive summary of comparisons between Java and C++ can be found on Wikipedia.

According to some sources, Java is currently one of the most popular programming languages in the world.

Useful Java links:

Todo

Reports:Tasks_not_implemented_in_Java

Subcategories

This category has the following 3 subcategories, out of 3 total.

Pages in category "Java"

The following 200 pages are in this category, out of 1,340 total.

(previous page) (next page)

A

(previous page) (next page)