First commit of partial RosettaCode contents.

Pushing this for testing purposes. Lots of work still needed.
This commit is contained in:
Ingy döt Net 2013-04-08 13:02:41 -07:00
commit 1e05ecd7ee
781 changed files with 9080 additions and 0 deletions

39
Lang/Java/0DESCRIPTION Normal file
View file

@ -0,0 +1,39 @@
{{language
|exec=bytecode
|site=http://www.oracle.com/technetwork/java/
|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]] 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.
The primary benefits of Java are:
* Cross-[[platform]] (Write Once, Run Anywhere (if all of the libraries are ported))
* Comprehensive class library (which is thoroughly [http://www.oracle.com/technetwork/java/javase/documentation/index.html documented])
* [[garbage collection|Automatic memory management]]
* Large user community
* Well supported by the [[open source]] community and commercial industry ([[Sun Microsystems|Sun]], [[IBM]], [[Oracle]], HP, BEA, [[Apple Inc]], etc.)
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 (i.e. Java for memory allocation, C++ for numerical operations). 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:
* [http://www.java.com java.com]
* [http://www.java.net java.net]
* [http://openjdk.java.net OpenJDK]

View file

@ -0,0 +1 @@
../../Task/99_Bottles_of_Beer/Java

1
Lang/Java/Anagrams Symbolic link
View file

@ -0,0 +1 @@
../../Task/Anagrams/Java

1
Lang/Java/Bulls_and_cows Symbolic link
View file

@ -0,0 +1 @@
../../Task/Bulls_and_cows/Java

1
Lang/Java/Comments Symbolic link
View file

@ -0,0 +1 @@
../../Task/Comments/Java

1
Lang/Java/FizzBuzz Symbolic link
View file

@ -0,0 +1 @@
../../Task/FizzBuzz/Java

1
Lang/Java/Infinity Symbolic link
View file

@ -0,0 +1 @@
../../Task/Infinity/Java

1
Lang/Java/JSON Symbolic link
View file

@ -0,0 +1 @@
../../Task/JSON/Java

1
Lang/Java/Knuth_shuffle Symbolic link
View file

@ -0,0 +1 @@
../../Task/Knuth_shuffle/Java

1
Lang/Java/Ordered_words Symbolic link
View file

@ -0,0 +1 @@
../../Task/Ordered_words/Java

1
Lang/Java/Pi Symbolic link
View file

@ -0,0 +1 @@
../../Task/Pi/Java

1
Lang/Java/Quine Symbolic link
View file

@ -0,0 +1 @@
../../Task/Quine/Java

1
Lang/Java/Search_a_list Symbolic link
View file

@ -0,0 +1 @@
../../Task/Search_a_list/Java