Sei sulla pagina 1di 34

Java (programming language) From Wikipedia, the free encyclopedia Jump to: navigation <#mw-head>, search <#p-search> "Java

language" redirects here. For the natural language from the Indonesian island of Java, see Javanese language </wiki/Javanese_language>. Not to be confused with JavaScript </wiki/JavaScript>. Java Java logo.svg </wiki/File:Java_logo.svg> Paradigm(s) </wiki/Programming_paradigm> Object-oriented </wiki/Object-oriented_programming>, structured </wiki/Structured_programming>, imperative </wiki/Imperative_programming> Appeared in 1995 Designed by Sun Microsystems </wiki/Sun_Microsystems> (now part of Oracle Corporation </wiki/Oracle_Corporation>) Developer </wiki/Software_developer> James Gosling </wiki/James_Gosling> and Sun Microsystems Stable release </wiki/Software_release_life_cycle> Java Standard Edition 7 Update 1(1.7.1) (October 18, 2011; 39 days ago (2011-10-18)) Typing discipline </wiki/Type_system> Static, strong, safe </wiki/Type_system>, nominative </wiki/Nominative_type_system>, manifest </wiki/Manifest_typing> Major implementations </wiki/Programming_language_implementation> OpenJDK </wiki/OpenJDK>, HotSpot </wiki/HotSpot>, many others </wiki/Category:Java_virtual_machine> Dialects </wiki/Dialect_(computing)> Generic Java </wiki/Generic_Java>, Pizza </wiki/Pizza_(programming_language)> Influenced by Ada 83 </wiki/Ada_(programming_language)>, C++ </wiki/C%2B%2B>, C# </wiki/C_Sharp_(programming_language)>,^[1] <#cite_note-0> Delphi Object Pascal </wiki/Object_Pascal>,^[2] <#cite_note-1> Eiffel </wiki/Eiffel_(programming_language)>,^[3] <#cite_note-2> Generic Java </wiki/Generic_Java>, Mesa </wiki/Mesa_(programming_language)>,^[4] <#cite_note-3> Modula-3 </wiki/Modula-3>,^[5] <#cite_note-4> Oberon </wiki/Oberon_(programming_language)>,^[6] <#cite_note-5> Objective-C </wiki/Objective-C>,^[7] <#cite_note-6> UCSD Pascal </wiki/UCSD_Pascal>,^[8] <#cite_note-7> ^[9] <#cite_note-8> Smalltalk </wiki/Smalltalk> Influenced Ada 2005 </wiki/Ada_(programming_language)>, BeanShell </wiki/BeanShell>, C# </wiki/C_Sharp_(programming_language)>, Clojure </wiki/Clojure>, D </wiki/D_(programming_language)>, ECMAScript </wiki/ECMAScript>, Groovy </wiki/Groovy_(programming_language)>, J# </wiki/J_Sharp>, JavaScript </wiki/JavaScript>, PHP </wiki/PHP>, Python </wiki/Python_(programming_language)>, Scala </wiki/Scala_(programming_language)>, Vala </wiki/Vala_(programming_language)> OS </wiki/Operating_system> Cross-platform (multi-platform) </wiki/Cross-platform> License </wiki/Software_license> GNU General Public License </wiki/GNU_General_Public_License> / Java Community Process </wiki/Java_Community_Process> Usual filename extensions </wiki/Filename_extension> .java, .class, .jar Website For Java Developers <http://www.oracle.com/technetwork/java/> Wikibooks logo </wiki/File:Wikibooks-logo-en.svg> Java Programming <//en.wikibooks.org/wiki/Java_Programming> at Wikibooks </wiki/Wikibooks> *Java* is a programming language </wiki/Programming_language> originally developed by James Gosling </wiki/James_Gosling> at Sun Microsystems

</wiki/Sun_Microsystems> (now part of Oracle Corporation </wiki/Oracle_Corporation>) and released in 1995 as a core component of Sun Microsystems' Java platform </wiki/Java_(software_platform)>. The language derives much of its syntax </wiki/Syntax_(programming_languages)> from C </wiki/C_(programming_language)> and C++ </wiki/C%2B%2B> but has a simpler object model </wiki/Object_model> and fewer low-level </wiki/Low-level_programming_language> facilities. Java applications are typically compiled </wiki/Compiler> to bytecode </wiki/Java_bytecode> (class file </wiki/Class_(file_format)>) that can run on any Java Virtual Machine </wiki/Java_Virtual_Machine> (JVM) regardless of computer architecture </wiki/Computer_architecture>. Java is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere." Java is currently one of the most popular programming languages in use, particularly for client-server web applications.^[10] <#cite_note-9> ^[11] <#cite_note-10> The original and reference implementation </wiki/Reference_implementation_(computing)> Java compilers </wiki/Compiler>, virtual machines, and class libraries </wiki/Library_(computing)> were developed by Sun from 1995. As of May 2007, in compliance with the specifications of the Java Community Process </wiki/Java_Community_Process>, Sun relicensed most of its Java technologies under the GNU General Public License </wiki/GNU_General_Public_License>. Others have also developed alternative implementations of these Sun technologies, such as the GNU Compiler for Java </wiki/GNU_Compiler_for_Java> and GNU Classpath </wiki/GNU_Classpath>. Contents [hide <#>] * 1 History <#History> o 1.1 Principles <#Principles> o 1.2 Versions <#Versions> * 2 Practices <#Practices> o 2.1 Java Platform <#Java_Platform> + 2.1.1 Implementations <#Implementations> + 2.1.2 Performance <#Performance> o 2.2 Automatic memory management <#Automatic_memory_management> * 3 Syntax <#Syntax> * 4 Examples <#Examples> o 4.1 Hello world <#Hello_world> o 4.2 A more comprehensive example <#A_more_comprehensive_example> * 5 Special classes <#Special_classes> o 5.1 Applet <#Applet> o 5.2 Servlet <#Servlet> o 5.3 JavaServer Pages <#JavaServer_Pages> o 5.4 Swing application <#Swing_application> o 5.5 Generics <#Generics> * 6 Criticism <#Criticism> * 7 Class libraries <#Class_libraries> * 8 Documentation <#Documentation> * 9 Editions <#Editions> * 10 Notes <#Notes> * 11 See also <#See_also>

* 12 References <#References> * 13 External links <#External_links> [edit </w/index.php?title=Java_(programming_language)&action=edit&section=1>] History See also: Java (software platform)#History </wiki/Java_(software_platform)#History> </wiki/File:Wave.svg> </wiki/File:Wave.svg> Duke, the Java mascot James Gosling </wiki/James_Gosling>, Mike Sheridan, and Patrick Naughton </wiki/Patrick_Naughton> initiated the Java language project in June 1991.^[12] <#cite_note-11> Java was originally designed for interactive television, but it was too advanced for the digital cable television industry at the time.^[13] <#cite_note-12> The language was initially called /Oak </wiki/Oak_(programming_language)>/ after an oak tree </wiki/Oak> that stood outside Gosling's office; it went by the name /Green/ later, and was later renamed /Java/, from Java coffee, said to be consumed in large quantities by the language's creators.^[14] <#cite_note-13> Gosling aimed to implement a virtual machine </wiki/Virtual_machine> and a language that had a familiar C </wiki/C_(programming_language)>/C++ </wiki/C%2B%2B> style of notation.^[15] <#cite_note-14> Sun Microsystems released the first public implementation as Java 1.0 in 1995. It promised "Write Once, Run Anywhere </wiki/Write_once,_run_anywhere>" (WORA), providing no-cost run-times on popular platforms </wiki/Computing_platform>. Fairly secure and featuring configurable security, it allowed network- and file-access restrictions. Major web browsers soon incorporated the ability to run Java /applets </wiki/Applet>/ within web pages, and Java quickly became popular. With the advent of /Java 2/ (released initially as J2SE 1.2 in December 19981999), new versions had multiple configurations built for different types of platforms. For example, /J2EE/ targeted enterprise applications and the greatly stripped-down version /J2ME/ for mobile applications (Mobile Java). /J2SE/ designated the Standard Edition. In 2006, for marketing purposes, Sun renamed new /J2/ versions as /Java EE </wiki/Java_Platform,_Enterprise_Edition>/, /Java ME </wiki/Java_Platform,_Micro_Edition>/, and /Java SE </wiki/Java_Platform,_Standard_Edition>/, respectively. In 1997, Sun Microsystems approached the ISO/IEC JTC1 </wiki/ISO/IEC_JTC1> standards body and later the Ecma International </wiki/Ecma_International> to formalize Java, but it soon withdrew from the process.^[16] <#cite_note-15> Java remains a /de facto </wiki/De_facto>/ standard, controlled through the Java Community Process </wiki/Java_Community_Process>.^[17] <#cite_note-16> At one time, Sun made most of its Java implementations available without charge, despite their proprietary software </wiki/Proprietary_software> status. Sun generated revenue from Java through the selling of licenses for specialized products such as the Java Enterprise System. Sun distinguishes between its Software Development Kit (SDK) </wiki/Software_development_kit> and Runtime Environment (JRE) </wiki/HotSpot> (a subset of the SDK); the primary distinction involves the JRE's lack of the compiler, utility programs, and header files.

On November 13, 2006, Sun released much of Java as free and open source software </wiki/Free_and_open_source_software>, (FOSS), under the terms of the GNU General Public License </wiki/GNU_General_Public_License> (GPL). On May 8, 2007, Sun finished the process, making all of Java's core code available under free software </wiki/Free_software>/open-source distribution terms, aside from a small portion of code to which Sun did not hold the copyright.^[18] <#cite_note-17> Sun's vice-president Rich Green said that Sun's ideal role with regards to Java was as an "evangelist."^[19] <#cite_note-18> Following Oracle Corporation </wiki/Oracle_Corporation>'s acquisition of Sun Microsystems in 20092010, Oracle has described itself as the "steward of Java technology with a relentless commitment to fostering a community of participation and transparency".^[20] <#cite_note-19> Java software runs on laptops </wiki/Laptop> to data centers </wiki/Data_center>, game consoles </wiki/Video_game_console> to scientific supercomputers </wiki/Supercomputer>. There are 930 million Java Runtime Environment </wiki/Java_(software_platform)> downloads each year and 3 billion mobile phones </wiki/Mobile_phone> run Java.^[21] <#cite_note-20> On April 2, 2010, James Gosling resigned from Oracle.^[22] <#cite_note-21> [edit </w/index.php?title=Java_(programming_language)&action=edit&section=2>] Principles There were five primary goals in the creation of the Java language:^[23] <#cite_note-22> 1. 2. 3. 4. 5. It It It It It should should should should should be "simple, object-oriented and familiar" be "robust and secure" be "architecture-neutral and portable" execute with "high performance" be "interpreted, threaded, and dynamic"

[edit </w/index.php?title=Java_(programming_language)&action=edit&section=3>] Versions Main article: Java version history </wiki/Java_version_history> Major release versions of Java, along with their release dates: * * * * * * * * JDK 1.0 (January 23, 1996) JDK 1.1 (February 19, 1997) J2SE 1.2 (December 8, 1998) J2SE 1.3 (May 8, 2000) J2SE 1.4 (February 6, 2002) J2SE 5.0 (September 30, 2004) Java SE 6 (December 11, 2006) Java SE 7 (July 28, 2011) [edit </w/index.php?title=Java_(programming_language)&action=edit&section=4>] Practices

[edit </w/index.php?title=Java_(programming_language)&action=edit&section=5>] Java Platform Main articles: Java (software platform) </wiki/Java_(software_platform)> and Java Virtual Machine </wiki/Java_Virtual_Machine> One characteristic of Java is portability, which means that computer programs written in the Java language must run similarly on any hardware/operating-system platform. This is achieved by compiling the Java language code to an intermediate representation called Java bytecode </wiki/Java_bytecode>, instead of directly to platform-specific machine code </wiki/Machine_code>. Java bytecode instructions are analogous to machine code, but are intended to be interpreted </wiki/Interpreter_(computing)> by a virtual machine </wiki/Virtual_machine> (VM) written specifically for the host hardware. End-users </wiki/End-user> commonly use a Java Runtime Environment </wiki/Java_Virtual_Machine> (JRE) installed on their own machine for standalone Java applications, or in a Web browser for Java applets </wiki/Applet>. Standardized libraries provide a generic way to access host-specific features such as graphics, threading </wiki/Thread_(computer_science)>, and networking </wiki/Computer_network>. A major benefit of using bytecode is porting. However, the overhead of interpretation means that interpreted programs almost always run more slowly than programs compiled to native executables would. Just-in-Time compilers were introduced from an early stage that compile bytecodes to machine code during runtime. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=6>] Implementations Gnome globe current event.svg </wiki/File:Gnome_globe_current_event.svg> This section is *outdated*. Please update this section to reflect recent events or newly available information. Please see the talk page </wiki/Talk:Java_(programming_language)> for more information. /(September 2011)/ Sun Microsystems </wiki/Sun_Microsystems> officially licensed the Java Standard Edition platform for Linux </wiki/Linux>,^[24] <#cite_note-23> Mac OS X </wiki/Mac_OS_X>,^[25] <#cite_note-24> and Solaris </wiki/Solaris_(operating_system)>. In the past Sun licensed Java to Microsoft but the license expired without renewal.^[26] <#cite_note-25> Because Windows does not ship with a Java software platform, a network of third-party vendors and licensees^[27] <#cite_note-26> develop them for Windows and other operating system/hardware platforms. Sun's trademark license for usage of the Java brand insists that all implementations be "compatible". This resulted in a legal dispute with Microsoft </wiki/Microsoft> after Sun claimed that the Microsoft implementation did not support RMI </wiki/Java_remote_method_invocation> or JNI </wiki/Java_Native_Interface> and had added platform-specific features of their own. Sun sued in 1997, and in 2001 won a settlement of US$20 million, as well as a court order enforcing the terms of the license from Sun.^[28] <#cite_note-27> As a result, Microsoft no longer ships Java with Windows </wiki/Microsoft_Windows>, and in recent

versions of Windows, Internet Explorer </wiki/Internet_Explorer> cannot support Java applets without a third-party plugin. Sun, and others, have made available free Java run-time systems for those and other versions of Windows. Platform-independent Java is essential to the Java EE </wiki/Java_Platform,_Enterprise_Edition> strategy, and an even more rigorous validation is required to certify an implementation. This environment enables portable server-side applications, such as Web services </wiki/Web_service>, Java Servlets </wiki/Java_Servlet>, and Enterprise JavaBeans </wiki/Enterprise_JavaBean>, as well as with embedded systems </wiki/Embedded_system> based on OSGi </wiki/OSGi>, using Embedded Java </wiki/Embedded_Java> environments. Through the GlassFish </wiki/GlassFish> project, Sun is working to create a fully functional, unified open source </wiki/Open_source> implementation of the Java EE technologies. Sun also distributes a superset of the JRE called the Java Development Kit </wiki/Java_Development_Kit> (commonly known as the JDK), which includes development tools such as the Java compiler </wiki/Java_compiler>, Javadoc </wiki/Javadoc>, Jar </wiki/JAR_(file_format)>, and debugger </wiki/Debugger>. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=7>] Performance Main article: Java performance </wiki/Java_performance> Programs written in Java have a reputation for being slower and requiring more memory than those written in C </wiki/C_(programming_language)>.^[29] <#cite_note-28> However, Java programs' execution speed improved significantly with the introduction of Just-in-time compilation </wiki/Just-in-time_compilation> in 1997/1998 for Java 1.1 </wiki/Java_version_history>,^[30] <#cite_note-29> the addition of language features supporting better code analysis (such as inner classes, StringBuffer class, optional assertions, etc.), and optimizations in the Java Virtual Machine </wiki/Java_Virtual_Machine> itself, such as HotSpot </wiki/HotSpot> becoming the default for Sun's JVM in 2000. Currently (November 2011), Java 2.0 code has approximately half the performance of C code.^[31] <#cite_note-30> Some platforms offer direct hardware support for Java; there are microcontrollers that can run Java in hardware instead of a software JVM, and ARM </wiki/ARM> based processors can have hardware support for executing Java bytecode through its Jazelle </wiki/Jazelle> option. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=8>] Automatic memory management Java uses an automatic garbage collector </wiki/Garbage_collection_(computer_science)> to manage memory in the object lifecycle </wiki/Object_lifetime>. The programmer determines when objects are created, and the Java runtime is responsible for recovering the memory once objects are no longer in use. Once no references to an object remain, the unreachable memory </wiki/Unreachable_memory> becomes

eligible to be freed automatically by the garbage collector. Something similar to a memory leak </wiki/Memory_leak> may still occur if a programmer's code holds a reference to an object that is no longer needed, typically when objects that are no longer needed are stored in containers that are still in use. If methods for a nonexistent object are called, a "null pointer exception" is thrown.^[32] <#cite_note-31> ^[33] <#cite_note-32> One of the ideas behind Java's automatic memory management model is that programmers can be spared the burden of having to perform manual memory management. In some languages, memory for the creation of objects is implicitly allocated on the stack </wiki/Stack_(data_structure)>, or explicitly allocated and deallocated from the heap </wiki/Dynamic_memory_allocation>. In the latter case the responsibility of managing memory resides with the programmer. If the program does not deallocate an object, a memory leak </wiki/Memory_leak> occurs. If the program attempts to access or deallocate memory that has already been deallocated, the result is undefined and difficult to predict, and the program is likely to become unstable and/or crash. This can be partially remedied by the use of smart pointers </wiki/Smart_pointer>, but these add overhead and complexity. Note that garbage collection does not prevent "logical" memory leaks, i.e. those where the memory is still referenced but never used. Garbage collection may happen at any time. Ideally, it will occur when a program is idle. It is guaranteed to be triggered if there is insufficient free memory on the heap to allocate a new object; this can cause a program to stall momentarily. Explicit memory management is not possible in Java. Java does not support C/C++ style pointer arithmetic </wiki/Pointer_(computing)>, where object addresses and unsigned integers (usually long integers) can be used interchangeably. This allows the garbage collector to relocate referenced objects and ensures type safety and security. As in C++ </wiki/C%2B%2B> and some other object-oriented languages, variables of Java's primitive data types </wiki/Primitive_data_type> are not objects. Values of primitive types are either stored directly in fields (for objects) or on the stack </wiki/Stack-based_memory_allocation> (for methods) rather than on the heap, as commonly true for objects (but see Escape analysis </wiki/Escape_analysis>). This was a conscious decision by Java's designers for performance reasons. Because of this, Java was not considered to be a pure object-oriented programming language. However, as of Java 5.0, autoboxing </wiki/Autoboxing> enables programmers to proceed as if primitive types were instances of their wrapper class. Java contains multiple types of garbage collectors. By default, HotSpot uses the Concurrent Mark Sweep collector </wiki/Concurrent_Mark_Sweep_collector>, also known as the CMS Garbage Collector. However, there are also several other garbage collectors that can be used to manage the Heap. For 90% of applications in Java, the CMS Garbage Collector is good enough.^[34] <#cite_note-33> [edit </w/index.php?title=Java_(programming_language)&action=edit&section=9>] Syntax

Main article: Java syntax </wiki/Java_syntax> The syntax of Java is largely derived from C++ </wiki/C%2B%2B>. Unlike C++, which combines the syntax for structured, generic, and object-oriented programming, Java was built almost exclusively as an object-oriented language. All code is written inside a class, and everything is an object, with the exception of the primitive data types (integers, floating-point numbers, boolean values, and characters), which are not classes for performance reasons. Unlike C++, Java does not support operator </wiki/Operator_(programming)> overloading </wiki/Operator_overloading> or multiple inheritance </wiki/Multiple_inheritance> for /classes/. This simplifies the language and aids in preventing potential errors and anti-pattern </wiki/Anti-pattern> design. Java uses similar commenting methods to C++. There are three different styles of comments: a single line style marked with two slashes ( // ), a multiple line style opened with /* and closed with */ , and the Javadoc </wiki/Javadoc> commenting style opened with /** and closed with */ . The Javadoc style of commenting allows the user to run the Javadoc executable to compile documentation for the program. *Example:* // This is an example of a single line comment using two slashes /* This is an example of a multiple line comment using the slash and asterisk. This type of comment can be used to hold a lot of information or deactivate code but it is very important to remember to close the comment. */ /** * This is an example of a Javadoc comment; Javadoc can compile documentation * from this text. */ [edit </w/index.php?title=Java_(programming_language)&action=edit&section=10>] Examples [edit </w/index.php?title=Java_(programming_language)&action=edit&section=11>] Hello world The traditional Hello world program </wiki/Hello_world_program> can be written in Java as:^[35] <#cite_note-34> class HelloWorldApp { public static void main(String[] args) { System.out.println("Hello World!"); // Display the string. } } To compare this to other programming languages see the list of hello world program examples </wiki/Hello_world_program_examples>. Source files must be named after the public class they contain, appending the suffix .java , for example, HelloWorldApp.java . It must

first be compiled into bytecode, using a Java compiler </wiki/Java_compiler>, producing a file named HelloWorldApp.class . Only then can it be executed, or 'launched'. The Java source file may only contain one public class but can contain multiple classes with less than public access and any number of public inner classes </wiki/Inner_class>. A *class* that is not declared *public* may be stored in any .java file. The compiler will generate a class file for each class defined in the source file. The name of the class file is the name of the class, with /.class/ appended. For class file generation, anonymous classes </wiki/Anonymous_class> are treated as if their name were the concatenation of the name of their enclosing class, a /$/, and an integer. The keyword </wiki/List_of_Java_keywords> *public* denotes that a method can be called from code in other classes, or that a class may be used by classes outside the class hierarchy. The class hierarchy is related to the name of the directory in which the .java file is located. The keyword *static* in front of a method indicates a static method </wiki/Method_(computer_science)#Static_methods>, which is associated only with the class and not with any specific instance of that class. Only static methods can be invoked without a reference to an object. Static methods cannot access any class members that are not also static. The keyword *void* indicates that the main method does not return any value to the caller. If a Java program is to exit with an error code, it must call System.exit() explicitly. The method name " main " is not a keyword in the Java language. It is simply the name of the method the Java launcher calls to pass control to the program. Java classes that run in managed environments such as applets and Enterprise JavaBean </wiki/Enterprise_JavaBean> do not use or need a main() method. A Java program may contain multiple classes that have main methods, which means that the VM needs to be explicitly told which class to launch from. The main method must accept an array </wiki/Array_data_type> of * String <http://download.oracle.com/javase/7/docs/api/java/lang/String.html> * objects. By convention, it is referenced as *args* although any other legal identifier name can be used. Since Java 5, the main method can also use variable arguments </wiki/Variadic_function>, in the form of public static void main(String... args) , allowing the main method to be invoked with an arbitrary number of String arguments. The effect of this alternate declaration is semantically identical (the args parameter is still an array of String objects), but allows an alternative syntax for creating and passing the array. The Java launcher launches Java by loading a given class (specified on the command line or as an attribute in a JAR </wiki/JAR_(file_format)>) and starting its public static void main(String[]) method. Stand-alone programs must declare this method explicitly. The String[] args parameter is an array </wiki/Array_data_type> of String <http://download.oracle.com/javase/7/docs/api/java/lang/String.html> objects containing any arguments passed to the class. The parameters to main are often passed by means of a command line </wiki/Command-line_interface>. Printing is part of a Java standard library: The * System <http://download.oracle.com/javase/7/docs/api/java/lang/System.html> *

class defines a public static field called * out <http://download.oracle.com/javase/7/docs/api/java/lang/System.html#out> *. The out object is an instance of the PrintStream <http://download.oracle.com/javase/7/docs/api/java/io/PrintStream.html> class and provides many methods for printing data to standard out </wiki/Standard_streams>, including * println(String) <http://download.oracle.com/javase/7/docs/api/java/io/PrintStream.html#println(j ava.lang.String)> * which also appends a new line to the passed string. The string "Hello, world!" is automatically converted to a String object by the compiler. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=12>] A more comprehensive example // OddEven.java import javax.swing.JOptionPane; public class OddEven { // "input" is the number that the user gives to the computer private int input; // a whole number("int" means integer) /* * This is the constructor method. It gets called when an object of the OddE ven type * is being created. */ public OddEven() { /* * In most Java programs constructors can initialize objects with default va lues, or create * other objects that this object might use to perform its functions. In som e Java programs, the * constructor may simply be an empty function if nothing needs to be initia lized prior to the * functioning of the object. In this program's case, an empty constructor would suffice, even if * it is empty. A constructor must exist, however if the user doesn't put on e in then the compiler * will create an empty one. */ } // This is the main method. It gets called when this class is Java interpreter. public static void main(String[] args) { /* * This line of code creates a new instance of this class " (also known as an * Object) and initializes it by calling the constructor. of code calls * the "showDialog()" method, which brings up a prompt to number */ OddEven number = new OddEven(); number.showDialog(); } run through a

called "number The next line ask you for a

public void showDialog() { /* * "try" makes sure nothing goes wrong. If something does, * the interpreter skips to "catch" to see what it should do. */ try { /* * The code below brings up a JOptionPane, which is a dialog box * The String returned by the "showInputDialog()" method is converte d into * an integer, making the program treat it as a number instead of a word. * After that, this method calls a second method, calculate() that w ill * display either "Even" or "Odd." */ input = Integer.parseInt(JOptionPane.showInputDialog("Please Enter A Number")); calculate(); } catch (NumberFormatException e) { /* * Getting in the catch block means that there was a problem with th e format of * the number. Probably some letters were typed in instead of a numb er. */ System.err.println("ERROR: Invalid input. Please type in a numerical value."); } } /* * When this gets called, it sends a message to the interpreter. * The interpreter usually shows it on the command prompt (For Windows users ) * or the terminal (For *nix users).(Assuming it's open) */ private void calculate() { if (input % 2 == 0) { System.out.println("Even"); } else { System.out.println("Odd"); } } } * The *import </wiki/List_of_Java_keywords#import>* statement imports the * JOptionPane <http://download.oracle.com/javase/7/docs/api/javax/swing/JOptionPane.html> * class from the * javax.swing <http://download.oracle.com/javase/7/docs/api/javax/swing/package-summary.ht ml> * package </wiki/Java_package>. * The *OddEven* class declares a single *private <//en.wikibooks.org/wiki/Java_Programming/Classes,_Objects_and_Types>* field </wiki/Field_(computer_science)> of type *int* named *input* . Every instance of the OddEven class has its own copy of the input field. The private declaration means that no other class

can access (read or write) the input field. * *OddEven()* is a *public* constructor </wiki/Constructor_(object-oriented_programming)>. Constructors have the same name as the enclosing class they are declared in, and unlike a method, have no return type </wiki/Return_type>. A constructor is used to initialize an object </wiki/Object_(computer_science)> that is a newly created instance of the class. * The *calculate()* method is declared without the static keyword. This means that the method is invoked using a specific instance of the OddEven class. (The reference </wiki/Reference_(computer_science)> used to invoke the method is passed as an undeclared parameter of type OddEven named *this </wiki/This_(computer_science)>* .) The method tests the expression input % 2 == 0 using the *if </wiki/Java_keywords#if>* keyword to see if the remainder of dividing the input field belonging to the instance of the class by two is zero. If this expression is true, then it prints *Even*; if this expression is false it prints *Odd*. (The input field can be equivalently accessed as this.input , which explicitly uses the undeclared this parameter.) * *OddEven number = new OddEven();* declares a local object reference </wiki/Reference_(computer_science)> variable in the main method named number . This variable can hold a reference to an object of type OddEven . The declaration initializes number by first creating an instance of the OddEven class, using the *new </wiki/List_of_Java_keywords#new>* keyword and the OddEven() constructor, and then assigning this instance to the variable. * The statement *number.showDialog();* calls the calculate method. The instance of OddEven object referenced by the number local variable </wiki/Local_variable> is used to invoke the method and passed as the undeclared this parameter to the calculate method. * *input = Integer.parseInt(JOptionPane.showInputDialog("Please Enter A Number"));* is a statement that converts the type of *String* to the primitive data type </wiki/Primitive_data_type> *int* by using a utility function in the primitive wrapper class </wiki/Primitive_wrapper_class> *Integer*. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=13>] Special classes [edit </w/index.php?title=Java_(programming_language)&action=edit&section=14>] Applet Main article: Java applet </wiki/Java_applet> Java applets are programs that are embedded in other applications, typically in a Web page displayed in a Web browser </wiki/Web_browser>. // Hello.java import javax.swing.JApplet; import java.awt.Graphics; public class Hello extends JApplet { public void paintComponent(Graphics g) { g.drawString("Hello, world!", 65, 95);

} } The *import* statements direct the Java compiler </wiki/Java_compiler> to include the * javax.swing.JApplet <http://download.oracle.com/javase/7/docs/api/javax/swing/JApplet.html> * and * java.awt.Graphics <http://download.oracle.com/javase/7/docs/api/java/awt/Graphics.html> * classes in the compilation. The import statement allows these classes to be referenced in the source code </wiki/Source_code> using the /simple class name/ (i.e. JApplet ) instead of the /fully qualified class name/ (i.e. javax.swing.JApplet ). The Hello class *extends* (subclasses </wiki/Subclass_(computer_science)>) the *JApplet* (Java Applet) class; the JApplet class provides the framework for the host application to display and control the lifecycle </wiki/Object_lifetime> of the applet. The JApplet class is a JComponent (Java Graphical Component) which provides the applet with the capability to display a graphical user interface </wiki/Graphical_user_interface> (GUI) and respond to user events </wiki/Event-driven_programming>. The Hello class overrides </wiki/Method_overriding> the * paintComponent(Graphics) <http://download.oracle.com/javase/7/docs/api/java/awt/Container.html#paint(java .awt.Graphics)> * method (additionally indicated with the annotation </wiki/Java_annotation>, supported as of JDK 1.5, Override ) inherited from the Container <http://download.oracle.com/javase/7/docs/api/java/awt/Container.html> superclass </wiki/Superclass_(computer_science)> to provide the code to display the applet. The paintComponent() method is passed a *Graphics* object that contains the graphic context used to display the applet. The paintComponent() method calls the graphic context * drawString(String, int, int) <http://download.oracle.com/javase/7/docs/api/java/awt/Graphics.html#drawString( java.lang.String,%20int,%20int)> * method to display the *"Hello, world!"* string at a pixel </wiki/Pixel> offset of ( *65, 95* ) from the upper-left corner in the applet's display. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <!-- Hello.html --> <html> <head> <title>Hello World Applet</title> </head> <body> <applet code="Hello.class" width="200" height="200"> </applet> </body> </html> An applet is placed in an HTML </wiki/HTML> document using the * <applet> * HTML element </wiki/HTML_element>. The applet tag has three attributes set: * code="Hello" * specifies the name of the JApplet class and * width="200" height="200" * sets the pixel width and height of the applet. Applets may also be embedded in HTML using either the object or embed element,^[36] <#cite_note-35> although

support for these elements by Web browsers is inconsistent.^[37] <#cite_note-36> However, the applet tag is deprecated, so the object tag is preferred where supported. The host application, typically a Web browser, instantiates the * Hello * applet and creates an AppletContext <http://download.oracle.com/javase/7/docs/api/java/applet/AppletContext.html> for the applet. Once the applet has initialized itself, it is added to the AWT display hierarchy. The paintComponent() method is called by the AWT event dispatching thread </wiki/Event_dispatching_thread> whenever the display needs the applet to draw itself. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=15>] Servlet Main article: Java Servlet </wiki/Java_Servlet> Java Servlet technology provides Web developers with a simple, consistent mechanism for extending the functionality of a Web server and for accessing existing business systems. Servlets are server-side </wiki/Server-side> Java EE components that generate responses (typically HTML </wiki/HTML> pages) to requests (typically HTTP </wiki/Hypertext_Transfer_Protocol> requests) from clients </wiki/Client_(computing)>. A servlet can almost be thought of as an applet that runs on the server sidewithout a face. // Hello.java import java.io.*; import javax.servlet.*; public class Hello extends GenericServlet { public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); final PrintWriter pw = response.getWriter(); try { pw.println("Hello, world!"); } finally { pw.close(); } } } The * import * statements direct the Java compiler to include all of the public classes and interfaces </wiki/Interface_(Java)> from the * java.io <http://download.oracle.com/javase/7/docs/api/java/io/package-summary.html> * and * javax.servlet <http://download.oracle.com/javaee/6/api/javax/servlet/package-summary.html> * packages in the compilation. The *Hello* class *extends* the * GenericServlet <http://download.oracle.com/javaee/6/api/javax/servlet/GenericServlet.html> * class; the GenericServlet class provides the interface for the server </wiki/Server_(computing)> to forward requests to the servlet and control the servlet's lifecycle. The Hello class overrides the * service(ServletRequest,

ServletResponse) <http://download.oracle.com/javaee/6/api/javax/servlet/Servlet.html#service(java x.servlet.ServletRequest,javax.servlet.ServletResponse)> * method defined by the Servlet <http://download.oracle.com/javaee/6/api/javax/servlet/Servlet.html> interface </wiki/Interface_(Java)> to provide the code for the service request handler. The service() method is passed a * ServletRequest <http://download.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html> * object that contains the request from the client and a * ServletResponse <http://download.oracle.com/javaee/6/api/javax/servlet/ServletResponse.html> * object used to create the response returned to the client. The service() method declares that it *throws* the exceptions </wiki/Exception_handling> ServletException <http://download.oracle.com/javaee/6/api/javax/servlet/ServletException.html> and IOException <http://download.oracle.com/javase/7/docs/api/java/io/IOException.html> if a problem prevents it from responding to the request. The * setContentType(String) <http://download.oracle.com/javaee/6/api/javax/servlet/ServletResponse.html#setC ontentType(java.lang.String)> * method in the response object is called to set the MIME </wiki/MIME> content type of the returned data to *"text/html"*. The * getWriter() <http://download.oracle.com/javaee/6/api/javax/servlet/ServletResponse.html#getW riter()> * method in the response returns a * PrintWriter <http://download.oracle.com/javase/7/docs/api/java/io/PrintWriter.html> * object that is used to write the data that is sent to the client. The * println(String) <http://download.oracle.com/javase/7/docs/api/java/io/PrintWriter.html#println(j ava.lang.String)> * method is called to write the *"Hello, world!"* string to the response and then the * close() <http://download.oracle.com/javase/7/docs/api/java/io/PrintWriter.html#close()> * method is called to close the print writer, which causes the data that has been written to the stream to be returned to the client. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=16>] JavaServer Pages Main article: JavaServer Pages </wiki/JavaServer_Pages> JavaServer Pages (JSP) are server-side </wiki/Server-side> Java EE components that generate responses, typically HTML </wiki/HTML> pages, to HTTP </wiki/Hypertext_Transfer_Protocol> requests from clients </wiki/Client_(computing)>. JSPs embed Java code in an HTML page by using the special delimiters </wiki/Delimiter> <% and %> . A JSP is compiled to a Java /servlet/, a Java application in its own right, the first time it is accessed. After that, the generated servlet creates the response. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=17>] Swing application Main article: Swing (Java) </wiki/Swing_(Java)>

Swing </wiki/Swing_(Java)> is a graphical user interface library </wiki/Library_(computing)> for the Java SE platform. It is possible to specify a different look and feel through the pluggable look and feel </wiki/Pluggable_look_and_feel> system of Swing. Clones of Windows </wiki/Microsoft_Windows>, GTK+ </wiki/GTK%2B> and Motif </wiki/Motif_(widget_toolkit)> are supplied by Sun. Apple </wiki/Apple_Inc.> also provides an Aqua </wiki/Aqua_(user_interface)> look and feel for Mac OS X </wiki/Mac_OS_X>. Where prior implementations of these looks and feels may have been considered lacking, Swing in Java SE 6 addresses this problem by using more native GUI widget </wiki/GUI_widget> drawing routines of the underlying platforms. This example Swing application creates a single window with "Hello, world!" inside: // Hello.java (Java SE 5) import javax.swing.*; public class Hello extends JFrame { public Hello() { super("hello"); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); add(new JLabel("Hello, world!")); pack(); setVisible(true); } public static void main(String[] args) { new Hello(); } } The first * import * includes all of the public classes and interfaces from the * javax.swing <http://download.oracle.com/javase/7/docs/api/javax/swing/package-summary.html> * package. The *Hello* class *extends* the * JFrame <http://download.oracle.com/javase/7/docs/api/javax/swing/JFrame.html> * class; the JFrame class implements a window </wiki/Window_(computing)> with a title bar </wiki/Title_bar> and a close control </wiki/GUI_widget>. The *Hello()* constructor </wiki/Constructor_(object-oriented_programming)> initializes the frame by first calling the superclass constructor, passing the parameter "hello" , which is used as the window's title. It then calls the * setDefaultCloseOperation(int) <http://download.oracle.com/javase/7/docs/api/javax/swing/JFrame.html#setDefault CloseOperation(int)> * method inherited from JFrame to set the default operation when the close control on the title bar is selected to * WindowConstants.EXIT_ON_CLOSE <http://download.oracle.com/javase/7/docs/api/javax/swing/WindowConstants.html#E XIT_ON_CLOSE> * this causes the JFrame to be disposed of when the frame is closed (as opposed to merely hidden), which allows the JVM to exit and the program to terminate. Next, a * JLabel

<http://download.oracle.com/javase/7/docs/api/javax/swing/JLabel.html> * is created for the string *"Hello, world!"* and the * add(Component) <http://download.oracle.com/javase/7/docs/api/java/awt/Container.html#add(java.a wt.Component)> * method inherited from the Container <http://download.oracle.com/javase/7/docs/api/java/awt/Container.html> superclass is called to add the label to the frame. The * pack() <http://download.oracle.com/javase/7/docs/api/java/awt/Window.html#pack()> * method inherited from the Window <http://download.oracle.com/javase/7/docs/api/java/awt/Window.html> superclass is called to size the window and lay out its contents. The *main()* method is called by the JVM when the program starts. It instantiates </wiki/Object_(computer_science)> a new * Hello * frame and causes it to be displayed by calling the * setVisible(boolean) <http://download.oracle.com/javase/7/docs/api/java/awt/Component.html#setVisible (boolean)> * method inherited from the Component <http://download.oracle.com/javase/7/docs/api/java/awt/Component.html> superclass with the boolean parameter *true* . Once the frame is displayed, exiting the main method does not cause the program to terminate because the AWT event dispatching thread </wiki/Event_dispatching_thread> remains active until all of the Swing top-level windows have been disposed. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=18>] Generics Main article: Generics in Java </wiki/Generics_in_Java> In 2004, generics </wiki/Generic_programming> were added to the Java language, as part of J2SE 5.0. Prior to the introduction of generics, each variable declaration had to be of a specific type. For container classes, for example, this is a problem because there is no easy way to create a container that accepts only specific types of objects. Either the container operates on all subtypes of a class or interface, usually Object , or a different container class has to be created for each contained class. Generics allow compile-time type checking without having to create a large number of container classes, each containing almost identical code. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=19>] Criticism Main article: Criticism of Java </wiki/Criticism_of_Java> A number of criticisms have been leveled at Java for various design choices in the language and platform. Such criticisms include the implementation of generics^[38] <#cite_note-37> , the handling of unsigned numbers^[39] <#cite_note-38> , the implementation of floating-point arithmetic^[40] <#cite_note-39> , and security vulnerabilities.^[/clarification needed </wiki/Wikipedia:Please_clarify>/] [edit </w/index.php?title=Java_(programming_language)&action=edit&section=20>]

Class libraries * Java libraries </wiki/Library_(computing)> are the compiled bytecodes </wiki/Bytecode> of source code </wiki/Source_code> developed by the JRE implementor to support application development in Java. Examples of these libraries are: o The core libraries, which include: + Collection libraries </wiki/Java_collections_framework> that implement data structures </wiki/Data_structure> such as lists </wiki/List_(computing)>, dictionaries </wiki/Associative_array>, trees </wiki/Tree_structure>, sets </wiki/Set_(computer_science)>, queues </wiki/Queue_(data_structure)> and double-ended queue </wiki/Double-ended_queue>, or stacks </wiki/Stack_(data_structure)> + XML </wiki/XML> Processing (Parsing, Transforming, Validating) libraries + Security + Internationalization and localization </wiki/Internationalization_and_localization> libraries o The integration libraries, which allow the application writer to communicate with external systems. These libraries include: + The Java Database Connectivity </wiki/Java_Database_Connectivity> (JDBC) API </wiki/Application_programming_interface> for database access + Java Naming and Directory Interface </wiki/Java_Naming_and_Directory_Interface> (JNDI) for lookup and discovery + RMI </wiki/Java_remote_method_invocation> and CORBA </wiki/Common_Object_Request_Broker_Architecture> for distributed application development + JMX </wiki/Java_Management_Extensions> for managing and monitoring applications o User interface </wiki/User_interface> libraries, which include: + The (heavyweight, or native </wiki/Native_mode>) Abstract Window Toolkit </wiki/Abstract_Window_Toolkit> (AWT), which provides GUI </wiki/Graphical_user_interface> components, the means for laying out those components and the means for handling events from those components + The (lightweight) Swing </wiki/Swing_(Java)> libraries, which are built on AWT but provide (non-native) implementations of the AWT widgetry + APIs for audio capture, processing, and playback * A platform dependent implementation of Java Virtual Machine </wiki/Java_Virtual_Machine> (JVM) that is the means by which the byte codes of the Java libraries and third party applications are executed * Plugins, which enable applets </wiki/Java_applet> to be run in Web browsers </wiki/Web_browser> * Java Web Start </wiki/Java_Web_Start>, which allows Java applications to be efficiently distributed to end-users </wiki/End-user> across the Internet </wiki/Internet> * Licensing and documentation. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=21>] Documentation Main article: Javadoc </wiki/Javadoc>

Javadoc </wiki/Javadoc> is a comprehensive documentation system, created by Sun Microsystems </wiki/Sun_Microsystems>, used by many Java developers. It provides developers with an organized system for documenting their code. Javadoc comments have an extra asterisk at the beginning, i.e. the tags are /** and */, whereas the normal multi-line comment tags comments in Java and C </wiki/C_(programming_language)> are set off with /* and */. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=22>] Editions See also: Free Java implementations#Class library </wiki/Free_Java_implementations#Class_library> Java </wiki/Java_(software_platform)> editions Wave.svg </wiki/File:Wave.svg> Java Card </wiki/Java_Card> Micro Edition </wiki/Java_Platform,_Micro_Edition> (ME) Standard Edition </wiki/Java_Platform,_Standard_Edition> (SE) Enterprise Edition </wiki/Java_Platform,_Enterprise_Edition> (EE) JavaFX </wiki/JavaFX> PersonalJava </wiki/PersonalJava> (discontinued) Sun has defined and supports four editions of Java targeting different application environments and segmented many of its APIs </wiki/Application_programming_interface> so that they belong to one of the platforms. The platforms are: * Java Card </wiki/Java_Card> for smartcards. * Java Platform, Micro Edition </wiki/Java_Platform,_Micro_Edition> (Java ME) targeting environments with limited resources. * Java Platform, Standard Edition </wiki/Java_Platform,_Standard_Edition> (Java SE) targeting workstation environments. * Java Platform, Enterprise Edition </wiki/Java_Platform,_Enterprise_Edition> (Java EE) targeting large distributed enterprise or Internet environments. The classes </wiki/Class_(computer_science)> in the Java APIs are organized into separate groups called packages </wiki/Java_package>. Each package contains a set of related interfaces </wiki/Interface_(Java)>, classes and exceptions </wiki/Exception_handling>. Refer to the separate platforms for a description of the packages available. The set of APIs is controlled by Sun Microsystems in cooperation with others through the Java Community Process </wiki/Java_Community_Process> program. Companies or individuals participating in this process can influence the design and development of the APIs. This process has been a subject of controversy. Sun also provided an edition called PersonalJava </wiki/PersonalJava> that has been superseded by later, standards-based Java ME configuration-profile pairings. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=23>]

Notes 1. *^ <#cite_ref-0>* Java 5.0 added several new language features (the enhanced for loop </wiki/Foreach>, autoboxing </wiki/Autoboxing>, varargs </wiki/Variadic_function> and annotations </wiki/Java_annotation>), after they were introduced in the similar (and competing) C# </wiki/C_Sharp_(programming_language)> language [1] <http://www.barrycornelius.com/papers/java5/>[2] <http://www.levenez.com/lang/> 2. *^ <#cite_ref-1>* "About Microsoft's "Delegates"" <http://java.sun.com/docs/white/delegates.html>. http://java.sun.com/docs/white/delegates.html. Retrieved 2010-01-11. "We looked very carefully at Delphi Object Pascal </wiki/Object_Pascal> and built a working prototype of bound method references in order to understand their interaction with the Java programming language and its APIs. [...] Our conclusion was that bound method references are unnecessary and detrimental to the language. This decision was made in consultation with Borland International, who had previous experience with bound method references in Delphi Object Pascal </wiki/Object_Pascal>." 3. *^ <#cite_ref-2>* Gosling, James; and McGilton, Henry (May 1996). "The Java Language Environment" <http://java.sun.com/docs/white/langenv/Intro.doc1.html#943>. http://java.sun.com/docs/white/langenv/Intro.doc1.html#943. 4. *^ <#cite_ref-3>* Gosling, James; Joy, Bill; Steele, Guy; and Bracha, Gilad. "The Java Language Specification, 2nd Edition" <http://java.sun.com/docs/books/jls/second_edition/html/intro.doc.html#23760 1>. http://java.sun.com/docs/books/jls/second_edition/html/intro.doc.html#237601 . 5. *^ <#cite_ref-4>* "The A-Z of Programming Languages: Modula-3" <http://www.computerworld.com.au/index.php/id;1422447371;pp;3;fp;4194304;fpi d;1>. Computerworld.com.au. http://www.computerworld.com.au/index.php/id;1422447371;pp;3;fp;4194304;fpid ;1. Retrieved 2010-06-09. 6. *^ <#cite_ref-5>* Niklaus Wirth </wiki/Niklaus_Wirth> stated on a number of public occasions, e.g. in a lecture at the Polytechnic Museum, Moscow in September, 2005 (several independent first-hand accounts in Russian exist, e.g. one with an audio recording: Filippova, Elena (September 22, 2005). "Niklaus Wirth's lecture at the Polytechnic Museum in Moscow" <http://www.delphikingdom.com/asp/viewitem.asp?catalogid=1155>. http://www.delphikingdom.com/asp/viewitem.asp?catalogid=1155. ), that the Sun Java design team licenced the Oberon compiler sources a number of years prior to the release of Java and examined it: a (relative) compactness, type safety, garbage collection, no multiple inheritance for classes -- all these key overall design features are shared by Java and Oberon. 7. *^ <#cite_ref-6>* Patrick Naughton </wiki/Patrick_Naughton> cites Objective-C </wiki/Objective-C> as a strong influence on the design of the Java programming language, stating that notable direct derivatives include Java interfaces (derived from Objective-C's protocol </wiki/Objective-C#Protocols>) and primitive wrapper classes. [3] <http://cs.gmu.edu/~sean/stuff/java-objc.html> 8. *^ <#cite_ref-7>* TechMetrix Research (1999). "History of Java" <http://www.fscript.org/prof/javapassport.pdf>. /Java Application Servers Report/. http://www.fscript.org/prof/javapassport.pdf. "The project went ahead under the name "green" and the language was based

on an old model of UCSD Pascal </wiki/UCSD_Pascal>, which makes it possible to generate interpretive code" 9. *^ <#cite_ref-8>* "A Conversation with James Gosling ACM Queue" <http://queue.acm.org/detail.cfm?id=1017013>. Queue.acm.org. 2004-08-31. http://queue.acm.org/detail.cfm?id=1017013. Retrieved 2010-06-09. 10. *^ <#cite_ref-9>* "Programming Language Popularity" <http://www.langpop.com/>. 2009. http://www.langpop.com/. Retrieved 2009-01-16. 11. *^ <#cite_ref-10>* "TIOBE Programming Community Index" <http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html>. 2009. http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html. Retrieved 2009-05-06. 12. *^ <#cite_ref-11>* Byous, Jon (ca. 1998). "Java technology: The early years" <http://web.archive.org/web/20050420081440/http://java.sun.com/features/1998 /05/birthday.html>. /Sun Developer Network/. Sun Microsystems </wiki/Sun_Microsystems>. Archived from the original <http://java.sun.com/features/1998/05/birthday.html> on April 20, 2005. http://web.archive.org/web/20050420081440/http://java.sun.com/features/1998/ 05/birthday.html. Retrieved 2005-04-22. 13. *^ <#cite_ref-12>* "The History of Java Technology" <http://www.java.com/en/javahistory/>. /Sun Developer Network/. ca. 1995. http://www.java.com/en/javahistory/. Retrieved 2010-04-30. 14. *^ <#cite_ref-13>* "Java - definition of Java by the Free Online Dictionary, Thesaurus and Encyclopedia." <http://www.thefreedictionary.com/Java>. 2003-06-15. http://www.thefreedictionary.com/Java. Retrieved 2011-07-30. 15. *^ <#cite_ref-14>* Kabutz, Heinz; /Once Upon an Oak/ <http://www.artima.com/weblogs/viewpost.jsp?thread=7555>. Artima. Retrieved April 29, 2007. 16. *^ <#cite_ref-15>* Java Study Group <http://www.open-std.org/JTC1/SC22/JSG/>; Why Java Was Not Standardized Twice <http://csdl2.computer.org/comp/proceedings/hicss/2001/0981/05/09815015.pdf> ; What is ECMAand why Microsoft cares <http://techupdate.zdnet.com/techupdate/stories/main/0,14179,2832719,00.html > 17. *^ <#cite_ref-16>* "Java Community Process website" <http://www.jcp.org/en/home/index>. Jcp.org. 2010-05-24. http://www.jcp.org/en/home/index. Retrieved 2010-06-09. 18. *^ <#cite_ref-17>* "JAVAONE: Sun The bulk of Java is open sourced" <http://open.itworld.com/4915/070508opsjava/page_1.html>. open.itworld.com. http://open.itworld.com/4915/070508opsjava/page_1.html. Retrieved 2010-06-09. 19. *^ <#cite_ref-18>* "Suns Evolving Role as Java Evangelist" <http://onjava.com/pub/a/onjava/2002/04/17/evangelism.html>. O Reilly Media </wiki/O%27Reilly_Media>. http://onjava.com/pub/a/onjava/2002/04/17/evangelism.html. 20. *^ <#cite_ref-19>* "Oracle and Java" <http://www.oracle.com/us/technologies/java/index.html>. /oracle.com/. Oracle Corporation. http://www.oracle.com/us/technologies/java/index.html. Retrieved 2010-08-23. "Oracle has been a leading and substantive supporter of

Java since its emergence in 1995 and takes on the new role as steward of Java technology with a relentless commitment to fostering a community of participation and transparency." 21. *^ <#cite_ref-20>* "Learn About Java Technology" <http://www.java.com/en/about/>. Oracle. http://www.java.com/en/about/. Retrieved 21 November 2011. 22. *^ <#cite_ref-21>* Gosling, James </wiki/James_Gosling> (April 9, 2010). "Time to move on..." <http://nighthacks.com/roller/jag/entry/time_to_move_on>. /On a New Road/. http://nighthacks.com/roller/jag/entry/time_to_move_on. Retrieved 2011-11-16. 23. *^ <#cite_ref-22>* "1.2 Design Goals of the Java^TM Programming Language" <http://java.sun.com/docs/white/langenv/Intro.doc2.html>. http://java.sun.com/docs/white/langenv/Intro.doc2.html.+1999-01-01. http://java.sun.com/docs/white/langenv/Intro.doc2.html. Retrieved 2010-06-09. 24. *^ <#cite_ref-23>* Patrizio, Andy (2006). "Sun Embraces Linux With New Java License" <http://www.internetnews.com/dev-news/article.php/3606656>. /Internet News/. Web Media Brands. http://www.internetnews.com/dev-news/article.php/3606656. Retrieved 2009-09-29. 25. *^ <#cite_ref-24>* "Java for Mac OS X" <http://developer.apple.com/java/>. /Apple Developer Connection/. Apple. http://developer.apple.com/java/. Retrieved 2009-09-29. 26. *^ <#cite_ref-25>* "Microsoft Java Virtual Machine Support" <http://www.microsoft.com/mscorp/java/default.mspx>. Microsoft.com. http://www.microsoft.com/mscorp/java/default.mspx. Retrieved 2010-06-09. 27. *^ <#cite_ref-26>* "Java SE Licensees" <http://java.sun.com/javase/licensees.jsp>. Java.sun.com. 2008-08-12. http://java.sun.com/javase/licensees.jsp. Retrieved 2010-06-09. 28. *^ <#cite_ref-27>* Niccolai, James (January 23, 2001). "Sun, Microsoft settle Java lawsuit" <http://www.javaworld.com/javaworld/jw-01-2001/jw-0124-iw-mssuncourt.html>. /JavaWorld/ (IDG </wiki/IDG>). http://www.javaworld.com/javaworld/jw-01-2001/jw-0124-iw-mssuncourt.html. Retrieved 2008-07-09. 29. *^ <#cite_ref-28>* Jelovic, Dejan. "Why Java will always be slower than C++" <http://www.jelovic.com/articles/why_java_is_slow.htm>. http://www.jelovic.com/articles/why_java_is_slow.htm. Retrieved 2008-02-15. 30. *^ <#cite_ref-29>* "Symantec s Just-In-Time Java Compiler To Be Integrated Into Sun JDK 1.1" <http://www.symantec.com/about/news/release/article.jsp?prid=19970407_03>. http://www.symantec.com/about/news/release/article.jsp?prid=19970407_03. 31. *^ <#cite_ref-30>* http://shootout.alioth.debian.org/u32q/which-programming-languages-are-faste st.php?gcc=on&javasteady=on&java=on&csharp=on&javaxint=on&calc=chart 32. *^ <#cite_ref-31>* "NullPointerException" <http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NullPointerException.html >. Java.sun.com. http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NullPointerException.html. Retrieved 2010-06-09. 33. *^ <#cite_ref-32>* "Exceptions in Java" <http://www.artima.com/designtechniques/exceptions.html>. Artima.com. http://www.artima.com/designtechniques/exceptions.html. Retrieved 2010-08-10.

34. *^ <#cite_ref-33>* http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html 35. *^ <#cite_ref-34>* "Lesson: A Closer Look at the "Hello World!" Application" <http://download.oracle.com/javase/tutorial/getStarted/application/index.htm l>. /The Java Tutorials > Getting Started/. Oracle Corporation </wiki/Oracle_Corporation>. http://download.oracle.com/javase/tutorial/getStarted/application/index.html . Retrieved 2011-04-14. 36. *^ <#cite_ref-35>* "Using applet, object and embed Tags" <http://download.oracle.com/javase/1.5.0/docs/guide/plugin/developer_guide/u sing_tags.html>. oracle.com. http://download.oracle.com/javase/1.5.0/docs/guide/plugin/developer_guide/us ing_tags.html. Retrieved 2010-10-14. 37. *^ <#cite_ref-36>* "Deploying Applets in a Mixed-Browser Environment" <http://download.oracle.com/javase/1.5.0/docs/guide/plugin/developer_guide/u sing_tags.html#mixed>. oracle.com. http://download.oracle.com/javase/1.5.0/docs/guide/plugin/developer_guide/us ing_tags.html#mixed. Retrieved 2010-10-14. 38. *^ <#cite_ref-37>* Arnold, Ken. "Generics Considered Harmful" <http://weblogs.java.net/blog/arnold/archive/2005/06/generics_consid_1.html> . java.net. http://weblogs.java.net/blog/arnold/archive/2005/06/generics_consid_1.html. Retrieved 4 July 2011. 39. *^ <#cite_ref-38>* Owens, Sean R.. "Java and unsigned int, unsigned short, unsigned byte, unsigned long, etc. (Or rather, the lack thereof)" <http://web.archive.org/web/20090220171410/http://darksleep.com/player/JavaA ndUnsignedTypes.html>. Archived from the original <http://darksleep.com/player/JavaAndUnsignedTypes.html> on 2004-11-09. http://web.archive.org/web/20090220171410/http://darksleep.com/player/JavaAn dUnsignedTypes.html. Retrieved 2011-07-04. 40. *^ <#cite_ref-39>* Kahan, William. "How Javas Floating-Point Hurts Everyone Everywhere" <http://www.cs.berkeley.edu/~wkahan/JAVAhurt.pdf>. Electrical Engineering & Computer Science, University of California at Berkeley. http://www.cs.berkeley.edu/~wkahan/JAVAhurt.pdf. Retrieved 4 June 2011. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=24>] See also Wikiversity has learning materials about /*Topic:Java <//en.wikiversity.org/wiki/Topic:Java>*/ Wave.svg </wiki/File:Wave.svg> /*Java portal </wiki/Portal:Java>*/

* Comparison of programming languages </wiki/Comparison_of_programming_languages> * Comparison of Java and C++ </wiki/Comparison_of_Java_and_C%2B%2B> * Comparison of Java and C# </wiki/Comparison_of_Java_and_C_Sharp> * C# </wiki/C_Sharp_(programming_language)> * JavaOne </wiki/JavaOne> * Javapedia </wiki/Javapedia> * List of Java virtual machines </wiki/List_of_Java_virtual_machines> * List of Java APIs </wiki/List_of_Java_APIs> * List of JVM languages </wiki/List_of_JVM_languages> * Java version history </wiki/Java_version_history> [edit </w/index.php?title=Java_(programming_language)&action=edit&section=25>] References * Gosling, James </wiki/James_Gosling>, /A brief history of the Green project/ <https://duke.dev.java.net/green/>.^[/dead link </wiki/Wikipedia:Link_rot>/] Java.net, no date [ca. Q1/1998]. Retrieved April 29, 2007. * Gosling, James; Joy, Bill </wiki/Bill_Joy>; Steele, Guy L., Jr. </wiki/Guy_L._Steele,_Jr.>; Bracha, Gilad </wiki/Gilad_Bracha> (2005). /The Java Language Specification/ <http://java.sun.com/docs/books/jls/index.html> (3rd ed.). Addison-Wesley. ISBN </wiki/International_Standard_Book_Number> 0-321-24678-0 </wiki/Special:BookSources/0-321-24678-0>. http://java.sun.com/docs/books/jls/index.html. * Lindholm, Tim; Yellin, Frank (1999). /The Java Virtual Machine Specification/ <http://java.sun.com/docs/books/vmspec/2nd-edition/html/VMSpecTOC.doc.html> (2nd ed.). Addison-Wesley. ISBN </wiki/International_Standard_Book_Number> 0-201-43294-3 </wiki/Special:BookSources/0-201-43294-3>. http://java.sun.com/docs/books/vmspec/2nd-edition/html/VMSpecTOC.doc.html. [edit </w/index.php?title=Java_(programming_language)&action=edit&section=26>] External links Look up /*Java <//en.wiktionary.org/wiki/Java>*/ in Wiktionary, the free dictionary. Wikibooks has a book on the topic of /*Java Programming <//en.wikibooks.org/wiki/Java_Programming>*/ Wikiversity has learning materials about /*Java <//en.wikiversity.org/wiki/Java>*/ Wikimedia Commons has media related to: /*Java (programming language) <//commons.wikimedia.org/wiki/Category:Java_(programming_language)>*/ * java.com <http://www.java.com/> - Java for end-users * Oracle s Developer Resources for Java Technology <http://www.oracle.com/technetwork/java/>. * Java SE 7 API Javadocs <http://download.oracle.com/javase/7/docs/api/> * Oracle s Beginner s tutorial for Java SE Programming <http://download.oracle.com/javase/tutorial/index.html>

* A Brief History of the Green Project <https://duke.dev.java.net/green/> * Michael O Connell: Java: The Inside Story <http://sunsite.uakom.sk/sunworldonline/swol-07-1995/swol-07-java.html>, SunWord, July 1995. * Patrick Naughton: Java Was Strongly Influenced by Objective-C <http://cs.gmu.edu/~sean/stuff/java-objc.html> (no date). * David Bank: The Java Saga <http://www.wired.com/wired/archive/3.12/java.saga.html>, /Wired/ Issue 3.12 (December 1995). * Shahrooz Feizabadi: A history of Java <http://ei.cs.vt.edu/~wwwbtb/book/chap1/java_hist.html> in: Marc Abrams, ed., /World Wide Web Beyond the Basics/, Prentice Hall, 1998. * Patrick Naughton: The Long Strange Trip to Java <http://www.blinkenlights.com/classiccmp/javaorigin.html>, March 18, 1996. * Open University (UK): M254 Java Everywhere <http://computing.open.ac.uk/m254/> (free open content documents). * is-research GmbH: List of programming languages for a Java Virtual Machine <http://www.is-research.de/info/vmlanguages/>. * How Java s Floating-Point Hurts Everyone Everywhere <http://www.eecs.berkeley.edu/~wkahan/JAVAhurt.pdf>, by W. Kahan and Joseph D. Darcy, University of California, Berkeley </wiki/University_of_California,_Berkeley>. [show <#>]v </wiki/Template:Java_(Sun)> ** d </wiki/Template_talk:Java_(Sun)> ** e <//en.wikipedia.org/w/index.php?title=Template:Java_(Sun)&action=edit>Java </wiki/Java_(software_platform)> Java platform *Java language* JVM </wiki/Java_Virtual_Machine> Micro Edition </wiki/Java_Platform,_Micro_Edition> Standard Edition </wiki/Java_Platform,_Standard_Edition> Enterprise Edition </wiki/Java_Platform,_Enterprise_Edition> Java Card </wiki/Java_Card> Wave.svg </wiki/File:Wave.svg> Sun technologies Squawk </wiki/Squawk_virtual_machine> Java Development Kit </wiki/Java_Development_Kit> OpenJDK </wiki/OpenJDK> Java Virtual Machine </wiki/Java_Virtual_Machine> JavaFX </wiki/JavaFX> Maxine VM </wiki/Maxine_Virtual_Machine> Platform technologies Applets </wiki/Java_applet> Servlets </wiki/Java_Servlet> MIDlets </wiki/MIDlet> jsp </wiki/JavaServer_Pages> Web Start (jnlp) </wiki/Java_Web_Start> Major third-party technologies JRockit </wiki/JRockit> GNU Classpath </wiki/GNU_Classpath> Kaffe </wiki/Kaffe> TopLink </wiki/TopLink> Apache Harmony </wiki/Apache_Harmony> Apache Struts </wiki/Apache_Struts> Spring framework </wiki/Spring_framework> Hibernate </wiki/Hibernate_(Java)> JBoss application server </wiki/JBoss_application_server> Tapestry </wiki/Tapestry_(programming)> Jazelle </wiki/Jazelle> History Java version history </wiki/Java_version_history> Java Community Process </wiki/Java_Community_Process> Sun Microsystems </wiki/Sun_Microsystems> Free Java implementations </wiki/Free_Java_implementations> Major programming languages BeanShell </wiki/BeanShell> Clojure </wiki/Clojure> Groovy </wiki/Groovy_(programming_language)> Java Tcl </wiki/Java_Tcl> JRuby </wiki/JRuby> Jython </wiki/Jython> Processing

</wiki/Processing_(programming_language)> Rhino </wiki/Rhino_(JavaScript_engine)> Scala </wiki/Scala_(programming_language)> more </wiki/List_of_JVM_languages> Java conferences JavaOne </wiki/JavaOne> [show <#>]v </wiki/Template:Sun_Microsystems> ** d </wiki/Template_talk:Sun_Microsystems> ** e <//en.wikipedia.org/w/index.php?title=Template:Sun_Microsystems&action=edit>Sun Microsystems </wiki/Sun_Microsystems> (acquired by Oracle Corporation </wiki/Oracle_Corporation>, 2010) Hardware Sun-1 </wiki/Sun-1> Sun-2 </wiki/Sun-2> Sun-3 </wiki/Sun-3> Sun386i </wiki/Sun386i> Sun-4 </wiki/Sun-4> SPARCstation </wiki/SPARCstation> Netra </wiki/Sun_Netra> Ultra </wiki/Sun_Ultra_series> Enterprise </wiki/Sun_Enterprise> Sun Blade </wiki/Sun_Blade> Sun Fire </wiki/Sun_Fire> SPARC Enterprise </wiki/SPARC_Enterprise> SPARC </wiki/SPARC> JavaStation </wiki/JavaStation> Sun Ray </wiki/Sun_Ray> Sun Modular Datacenter </wiki/Sun_Modular_Datacenter> /more.../ </wiki/Category:Sun_Microsystems_hardware> Software SunOS </wiki/SunOS> ** Solaris </wiki/Solaris_(operating_system)> ** NIS </wiki/Network_Information_Service> (+ </wiki/NIS%2B>) ** NFS </wiki/Network_File_System_(protocol)> ** ZFS </wiki/ZFS> ** SunView </wiki/SunView> ** NeWS </wiki/NeWS> ** OpenWindows </wiki/OpenWindows> ** Java Desktop System </wiki/Java_Desktop_System> ** Sun Studio </wiki/Sun_Studio_(software)> ** Java </wiki/Java_(Sun)> ** StarOffice </wiki/StarOffice> ** iPlanet </wiki/IPlanet>/Sun ONE </wiki/Sun_ONE>/Java Enterprise System </wiki/Java_Enterprise_System> ** Sun Secure Global Desktop </wiki/Sun_Secure_Global_Desktop> ** MySQL </wiki/MySQL> ** Sun xVM </wiki/Sun_xVM> ** GlassFish </wiki/GlassFish> ** /more.../ </wiki/Category:Sun_Microsystems_software> Storage StorageTek </wiki/StorageTek> Sun Open Storage </wiki/Sun_Open_Storage> QFS </wiki/QFS> ZFS </wiki/ZFS> High-performance computing Sun Cloud </wiki/Sun_Cloud> Sun Constellation System </wiki/Sun_Constellation_System> Sun Visualization System </wiki/Sun_Visualization_System> Sun Grid Engine </wiki/Oracle_Grid_Engine> Lustre </wiki/Lustre_(file_system)> Research Sun Labs </wiki/Sun_Microsystems_Laboratories> picoJava </wiki/PicoJava> Fortress </wiki/Fortress_(programming_language)> Project Looking Glass </wiki/Project_Looking_Glass> Education and recognition SCPs </wiki/Sun_Certified_Professional> List of notable employees </wiki/List_of_notable_Sun_Microsystems_employees> BlueJ </wiki/BlueJ> Community CDDL </wiki/CDDL> Java Community Process </wiki/Java_Community_Process> NetBeans </wiki/NetBeans> OpenOffice.org </wiki/OpenOffice.org> OpenSolaris </wiki/OpenSolaris> OpenSPARC </wiki/OpenSPARC> OpenJDK </wiki/OpenJDK> OSUM </wiki/Open_Source_University_Meetup> [show <#>]v </wiki/Template:FOSS> ** d </wiki/Template_talk:FOSS> ** e <//en.wikipedia.org/w/index.php?title=Template:FOSS&action=edit>Free and open source software </wiki/Free_and_open_source_software>

General Copyleft </wiki/Copyleft> Events and Awards </wiki/Category:Free_software_related_events_and_awards> Free software </wiki/Free_software> Free Software Definition </wiki/The_Free_Software_Definition> Gratis versus libre </wiki/Gratis_versus_libre> List of free and open source software packages </wiki/List_of_free_and_open_source_software_packages> List of free software Android applications </wiki/List_of_free_software_Android_applications> List of free software web applications </wiki/List_of_free_software_web_applications> List of project directories </wiki/List_of_free_software_project_directories>/Comparison of hosting facilities </wiki/Comparison_of_open_source_software_hosting_facilities> List of formerly proprietary software </wiki/List_of_formerly_proprietary_software> Open-source software </wiki/Open-source_software> Operating system families </wiki/Comparison_of_open_source_operating_systems> AROS </wiki/AROS_Research_Operating_System> BSD </wiki/Berkeley_Software_Distribution> Darwin </wiki/Darwin_(operating_system)> eCos </wiki/ECos> FreeDOS </wiki/FreeDOS> GNU </wiki/GNU> Haiku </wiki/Haiku_(operating_system)> Inferno </wiki/Inferno_(operating_system)> Linux </wiki/Linux> Mach </wiki/Mach_(kernel)> MINIX </wiki/MINIX> OpenSolaris </wiki/OpenSolaris> Plan 9 </wiki/Plan_9_from_Bell_Labs> ReactOS </wiki/ReactOS> Symbian </wiki/Symbian> Development </wiki/Open_source_software_development> Eclipse </wiki/Eclipse_(software)> Free Pascal </wiki/Free_Pascal> GCC </wiki/GNU_Compiler_Collection> Gambas </wiki/Gambas> *Java* LLVM </wiki/Low_Level_Virtual_Machine> Lua </wiki/Lua_(programming_language)> NetBeans </wiki/NetBeans> Open64 </wiki/Open64> Perl </wiki/Perl> PHP </wiki/PHP> Python </wiki/Python_(programming_language)> ROSE </wiki/ROSE_compiler_framework> Ruby </wiki/Ruby_(programming_language)> Tcl </wiki/Tcl> History </wiki/History_of_Free_Software> GNU </wiki/GNU#History> Haiku </wiki/History_of_Haiku_(operating_system)> Linux </wiki/History_of_Linux> Mozilla </wiki/Mozilla> (Application Suite </wiki/History_of_Mozilla_Application_Suite> Firefox </wiki/History_of_Firefox> Thunderbird </wiki/History_of_Mozilla_Thunderbird>) Organizations Apache Software Foundation </wiki/Apache_Software_Foundation> Blender Foundation </wiki/Blender_Foundation> Eclipse Foundation </wiki/Eclipse_Foundation> FreeBSD Foundation </wiki/FreeBSD_Foundation> freedesktop.org </wiki/Freedesktop.org> Free Software Foundation </wiki/Free_Software_Foundation> (Europe </wiki/Free_Software_Foundation_Europe> India </wiki/Free_Software_Foundation_of_India> Latin America </wiki/Free_Software_Foundation_Latin_America>) FSMI </wiki/Free_Software_Movement_of_India> GNOME Foundation </wiki/GNOME_Foundation> GNU Project </wiki/GNU_Project> Google Code </wiki/Google_Code> KDE e.V. </wiki/KDE_e.V.> Linux Foundation </wiki/Linux_Foundation> Mozilla Foundation </wiki/Mozilla_Foundation> Open Source Geospatial Foundation </wiki/Open_Source_Geospatial_Foundation> Open Source Initiative </wiki/Open_Source_Initiative> Software Freedom Conservancy

</wiki/Software_Freedom_Conservancy> SourceForge </wiki/SourceForge> Symbian Foundation </wiki/Symbian_Foundation> The Document Foundation </wiki/The_Document_Foundation> Xiph.Org Foundation </wiki/Xiph.Org_Foundation> XMPP Standards Foundation </wiki/XMPP_Standards_Foundation> X.Org Foundation </wiki/X.Org_Foundation> Licences </wiki/Free_software_licence> Apache </wiki/Apache_License> Artistic </wiki/Artistic_License> BSD </wiki/BSD_licenses> GNU GPL </wiki/GNU_General_Public_License> GNU LGPL </wiki/GNU_Lesser_General_Public_License> ISC </wiki/ISC_license> MIT </wiki/MIT_License> MPL </wiki/Mozilla_Public_License> Ms-PL/RL </wiki/Shared_source#Open_Source_licenses> zlib </wiki/Zlib_License> Public domain </wiki/Public_domain>/CC0 </wiki/CC0#Public_domain_tools> FSF approved licenses </wiki/List_of_FSF_approved_software_licenses> Licence standards Open Source Definition </wiki/Open_Source_Definition> The Free Software Definition </wiki/The_Free_Software_Definition> Debian Free Software Guidelines </wiki/Debian_Free_Software_Guidelines> Definition of Free Cultural Works </wiki/Definition_of_Free_Cultural_Works> Challenges Binary blob </wiki/Binary_blob> Canonical s contributor agreement </wiki/Canonical%27s_contributor_agreement> Digital rights management </wiki/Digital_rights_management> Graphics hardware compatibility </wiki/Graphics_hardware_and_FOSS> License proliferation </wiki/License_proliferation> Mozilla software rebranding </wiki/Mozilla_Corporation_software_rebranded_by_the_Debian_project> Proprietary software </wiki/Proprietary_software> SCO-Linux controversies </wiki/SCO-Linux_controversies> Security </wiki/Open_source_software_security> Software patents </wiki/Software_patents_and_free_software> Hardware restrictions </wiki/Hardware_restrictions> Trusted Computing </wiki/Trusted_Computing> Viral license </wiki/Viral_license> Other topics Alternative terms </wiki/Alternative_terms_for_free_software> Community </wiki/Free_software_community> Linux distribution </wiki/Linux_distribution> Forking </wiki/Fork_(software_development)> Movement </wiki/Free_software_movement> Microsoft Open Specification Promise </wiki/Microsoft_Open_Specification_Promise> /Revolution OS </wiki/Revolution_OS>/ Comparison with closed source </wiki/Comparison_of_open_source_and_closed_source> *Wikipedia book Book:Free and Open Source Software </wiki/Book:Free_and_Open_Source_Software> Category Category:Free software </wiki/Category:Free_software> Portal Portal:Free software </wiki/Portal:Free_software>* Retrieved from "http://en.wikipedia.org/w/index.php?title=Java_(programming_language)&oldid=462 269876" View page ratings Rate this page Rate this page Page ratings What s this? </wiki/Wikipedia:Article Feedback Tool> Current average ratings. Trustworthy Objective

Complete Well-written I am highly knowledgeable about this topic (optional) I have a relevant college/university degree It is part of my profession It is a deep personal passion The source of my knowledge is not listed here I would like to help improve Wikipedia, send me an e-mail (optional) We will send you a confirmation e-mail. We will not share your e-mail address with outside parties as per our feedback privacy statement <http://wikimediafoundation.org/wiki/Feedback_privacy_statement>. Submit ratings Saved successfully Your ratings have not been submitted yet Your ratings have expired Please reevaluate this page and submit new ratings. An error has occured. Please try again later. Thanks! Your ratings have been saved. Please take a moment to complete a short survey. Start survey Maybe later Thanks! Your ratings have been saved. Do you want to create an account? An account will help you track your edits, get involved in discussions, and be a part of the community. Create an accountorLog in Maybe later Thanks! Your ratings have been saved. Did you know that you can edit this page? Edit this page Maybe later Categories </wiki/Special:Categories>: * C programming language family </wiki/Category:C_programming_language_family> * Class-based programming languages </wiki/Category:Class-based_programming_languages> * Concurrent programming languages </wiki/Category:Concurrent_programming_languages> * Cross-platform software </wiki/Category:Cross-platform_software> * Java platform </wiki/Category:Java_platform> * Java programming language </wiki/Category:Java_programming_language> * Java specification requests </wiki/Category:Java_specification_requests> * JVM programming languages </wiki/Category:JVM_programming_languages> * Object-oriented programming languages </wiki/Category:Object-oriented_programming_languages> * Programming languages created in 1995 </wiki/Category:Programming_languages_created_in_1995> * Sun Microsystems </wiki/Category:Sun_Microsystems> Hidden categories: * Wikipedia articles in need of updating from September 2011 </wiki/Category:Wikipedia_articles_in_need_of_updating_from_September_2011> * All Wikipedia articles in need of updating </wiki/Category:All_Wikipedia_articles_in_need_of_updating> * All pages needing cleanup </wiki/Category:All_pages_needing_cleanup> * Wikipedia articles needing clarification from May 2011 </wiki/Category:Wikipedia_articles_needing_clarification_from_May_2011> * Articles which use infobox templates with no data rows </wiki/Category:Articles_which_use_infobox_templates_with_no_data_rows> * All articles with dead external links </wiki/Category:All_articles_with_dead_external_links>

* Articles with dead external links from June 2011 </wiki/Category:Articles_with_dead_external_links_from_June_2011> Personal tools * Log in / create account </w/index.php?title=Special:UserLogin&returnto=Java_%28programming_language% 29&campaign=ACP2> Namespaces * Article </wiki/Java_(programming_language)> * Discussion </wiki/Talk:Java_(programming_language)> Variants<#> Views * Read </wiki/Java_(programming_language)> * Edit </w/index.php?title=Java_(programming_language)&action=edit> * View history </w/index.php?title=Java_(programming_language)&action=history> Actions<#> Search Search </wiki/Main_Page> Navigation Main page </wiki/Main_Page> Contents </wiki/Portal:Contents> Featured content </wiki/Portal:Featured_content> Current events </wiki/Portal:Current_events> Random article </wiki/Special:Random> Donate to Wikipedia <//wikimediafoundation.org/wiki/Special:Landingcheck?landing_page=WMFJA085&l anguage=en&utm_source=donate&utm_medium=sidebar&utm_campaign=20101204SB002> Interaction * * * * * Help </wiki/Help:Contents> About Wikipedia </wiki/Wikipedia:About> Community portal </wiki/Wikipedia:Community_portal> Recent changes </wiki/Special:RecentChanges> Contact Wikipedia </wiki/Wikipedia:Contact_us> Toolbox * * * * * *

* What links here </wiki/Special:WhatLinksHere/Java_(programming_language)> * Related changes </wiki/Special:RecentChangesLinked/Java_(programming_language)> * Upload file </wiki/Wikipedia:Upload> * Special pages </wiki/Special:SpecialPages> * Permanent link </w/index.php?title=Java_(programming_language)&oldid=462269876> * Cite this page </w/index.php?title=Special:Cite&page=Java_(programming_language)&id=4622698 76> * Rate this page <#mw-articlefeedback> Print/export * Create a book </w/index.php?title=Special:Book&bookcmd=book_creator&referer=Java+%28progra mming+language%29> * Download as PDF </w/index.php?title=Special:Book&bookcmd=render_article&arttitle=Java+%28pro gramming+language%29&oldid=462269876&writer=rl> * Printable version </w/index.php?title=Java_(programming_language)&printable=yes> Languages <//my.wikipedia.org/wiki/Java_(programming_language)> * * Ach <//ace.wikipedia.org/wiki/Java> * Afrikaans <//af.wikipedia.org/wiki/Java_(programmeertaal)> * <//am.wikipedia.org/wiki/%E1%8C%83%E1%89%AB_(java)> * <//ar.wikipedia.org/wiki/%D8%AC%D8%A7%D9%81%D8%A7_(%D9%84%D8%BA%D8%A9_%D8%A8 %D8%B1%D9%85%D8%AC%D8%A9)> * Azrbaycanca <//az.wikipedia.org/wiki/Java> * <//bn.wikipedia.org/wiki/%E0%A6%9C%E0%A6%BE%E0%A6%AD%E0%A6%BE_(%E0%A6%AA%E0% A7%8D%E0%A6%B0%E0%A7%8B%E0%A6%97%E0%A7%8D%E0%A6%B0%E0%A6%BE%E0%A6%AE%E0%A6%BF%E0 %A6%82_%E0%A6%AD%E0%A6%BE%E0%A6%B7%E0%A6%BE)> * <//be.wikipedia.org/wiki/Java> * ( ) <//be-x-old.wikipedia.org/wiki/Java> * Bosanski <//bs.wikipedia.org/wiki/Java_programski_jezik> * <//bg.wikipedia.org/wiki/Java> * Catal <//ca.wikipedia.org/wiki/Java_(llenguatge_de_programaci%C3%B3)> * <//cv.wikipedia.org/wiki/Java_(%D0%BA%D0%BE%D0%BC%D0%BF%D1%8C%D1%8E%D1%82%D0 %B5%D1%80_%D1%87%C4%95%D0%BB%D1%85%D0%B8)> * esky <//cs.wikipedia.org/wiki/Java_(programovac%C3%AD_jazyk)> * Corsu <//co.wikipedia.org/wiki/Java> * Cymraeg <//cy.wikipedia.org/wiki/Java_(iaith_rhaglennu)> * Dansk <//da.wikipedia.org/wiki/Java_(programmeringssprog)> * Deutsch <//de.wikipedia.org/wiki/Java_(Programmiersprache)> * Eesti <//et.wikipedia.org/wiki/Java> * <//e .w ped a.org/w /Java> * spao <//es.w ped a.org/w /Java_( e guaje_de_programac %C3%B3 )> * spera to <//eo.w ped a.org/w /Java_(program gvo)> * us ara <//eu.w ped a.org/w /Java_(programaz o_ e goa a)> *

<//fa.w ped a.org/w /%D8%AC%D8%A7%D9%88%D8%A7_(%D8%B2%D8%A8%D8%A7%D9%86_ %D8%A8%D8%B1%D9%86%D8%A7%D9%85%D9%87% 2%80%8C%D9%86%D9%88%DB%8C%D8%B3%DB%8C)> * Fra a s <//fr.w ped a.org/w /Java_( a gage)> * Gae ge <//ga.w ped a.org/w /Java> * Ga ego <//g .w ped a.org/w /L guaxe_Java> * <// o.w ped a.org/w /% C%9 %90% B%B0%94_(% D%94%84% B%A1%9C% A%B7%B8% B% 9 %98% B%B0%8D_% C%96%B8% C%96%B4)> * <// y.w ped a.org/w /%D5%8B%D5%A1%D5%B %D5%A1> * <// .w ped a.org/w /% 0%A4%9C% 0%A4%B % 0%A4%B5% 0%A4%B _% 0%A4%AA% 0%A 5%8D% 0%A4%B0% 0%A5%8B% 0%A4%97% 0%A5%8D% 0%A4%B0% 0%A4%B % 0%A4%A % 0%A4%BF% 0% A4%82% 0%A4%97_% 0%A4%AD% 0%A4%B % 0%A4%B7% 0%A4%B > * Hrvats <// r.w ped a.org/w /Java_(programs _jez )> * Ba asa I do es a <// d.w ped a.org/w /Java> * I ter gua <// a.w ped a.org/w /Java_( guage_de_programmat o )> * s e s a <// s.w ped a.org/w /Java_(forr tu arm%C3%A1 )> * Ita a o <// t.w ped a.org/w /Java_( guagg o)> * //< e.w ped a.org/w /Java> * <// a.w ped a.org/w /Java_(% 1%83%9 % 1%83%A0% 1%83%9D% 1%83%92% 1%83%A0 % 1%83%90% 1%83%9B% 1%83%98% 1%83%A0% 1%83%94% 1%83%91% 1%83%98% 1%83%A1_% 1%83% 94% 1%83%9C% 1%83%90)> * Krey ay sye <// t.w ped a.org/w /Java> * Lat a <// a.w ped a.org/w /Java_( gua_programma d )> * Latv eu <// v.w ped a.org/w /Java_(va oda)> * L etuv <// t.w ped a.org/w /Java_( a ba)> * L gure <// j.w ped a.org/w /Java_( e guazzo)> * Magyar <// u.w ped a.org/w /Java_(programoz%C3%A1s _ ye v)> * <//mk.wikipedia.org/wiki/%D0%88%D0%B0%D0%B2%D0%B0_(%D0%BF%D1%80%D0%BE%D0%B3% D1%80%D0%B0%D0%BC%D1%81%D0%BA%D0%B8_%D1%98%D0%B0%D0%B7%D0%B8%D0%BA)> * <//ml.wikipedia.org/wiki/%E0%B4%9C%E0%B4%BE%E0%B4%B5_(%E0%B4%AA%E0%B5%8D%E0% B4%B0%E0%B5%8B%E0%B4%97%E0%B5%8D%E0%B4%B0%E0%B4%BE%E0%B4%AE%E0%B4%BF%E0%B4%99%E0 %B5%8D_%E0%B4%AD%E0%B4%BE%E0%B4%B7)> * <//mr.wikipedia.org/wiki/%E0%A4%9C%E0%A4%BE%E0%A4%B5%E0%A4%BE_(%E0%A4%AA%E0% A5%8D%E0%A4%B0%E0%A5%8B%E0%A4%97%E0%A5%8D%E0%A4%B0%E0%A5%85%E0%A4%AE%E0%A4%BF%E0 %A4%82%E0%A4%97_%E0%A4%AD%E0%A4%BE%E0%A4%B7%E0%A4%BE)> * Bahasa Melayu <//ms.wikipedia.org/wiki/Java> * Mng-dng-ng <//cdo.wikipedia.org/wiki/Java> * <//mn.wikipedia.org/wiki/Java_(%D0%9F%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0 %BC%D1%87%D0%BB%D0%B0%D0%BB%D1%8B%D0%BD_%D1%85%D1%8D%D0%BB)> * Nederlands <//nl.wikipedia.org/wiki/Java_(programmeertaal)> * <//ja.wikipedia.org/wiki/Java> * Norsk (bokml) <//no.wikipedia.org/wiki/Java_(programmeringsspr%C3%A5k)> * Norsk (nynorsk) <//nn.wikipedia.org/wiki/Programmeringsspr%C3%A5ket_Java> * O zbek <//uz.wikipedia.org/wiki/Java> * <//pa.wikipedia.org/wiki/%E0%A8%9C%E0%A8%BE%E0%A8%B5%E0%A8%BE_%E0%A8%AA%E0%A 9%8D%E0%A8%B0%E0%A9%8B%E0%A8%97%E0%A8%B0%E0%A8%BE%E0%A8%AE%E0%A8%BF%E0%A9%B0%E0% A8%97_%E0%A8%AD%E0%A8%BE%E0%A8%B8%E0%A8%BC%E0%A8%BE> * Polski <//pl.wikipedia.org/wiki/Java> * Portugus <//pt.wikipedia.org/wiki/Java_(linguagem_de_programa%C3%A7%C3%A3o)> * Qaraqalpaqsha

* * * * *

<//kaa.wikipedia.org/wiki/Java_(programmalast%C4%B1r%C4%B1w_tili)> Romn <//ro.wikipedia.org/wiki/Java_(limbaj_de_programare)> <//ru.wikipedia.org/wiki/Java> <//sah.wikipedia.org/wiki/Java> Shqip <//sq.wikipedia.org/wiki/Java_(gjuh%C3%AB_programimi)>

<//si.wikipedia.org/wiki/%E0%B6%A2%E0%B7%8F%E0%B7%80%E0%B7%8F_(%E0%B6%B4%E0% B6%BB%E0%B7%92%E0%B6%9C%E0%B6%AB%E0%B6%9A_%E0%B6%9A%E0%B7%8A%E2%80%8D%E0%B6%BB%E 0%B6%B8%E0%B6%BD%E0%B7%9A%E0%B6%9B%E0%B6%B1_%E0%B6%B6%E0%B7%83)> * Simple English <//simple.wikipedia.org/wiki/Java_(programming_language)> * Slovenina <//sk.wikipedia.org/wiki/Java> * Slovenina <//sl.wikipedia.org/wiki/Programski_jezik_java> * / Srpski <//sr.wikipedia.org/wiki/%D0%88%D0%B0%D0%B2%D0%B0_(%D0%BF%D1%80%D0%BE%D0%B3% D1%80%D0%B0%D0%BC%D1%81%D0%BA%D0%B8_%D1%98%D0%B5%D0%B7%D0%B8%D0%BA)> * Srpskohrvatski / <//sh.wikipedia.org/wiki/Java_(programski_jezik)> * Suomi <//fi.wikipedia.org/wiki/Java> * Svenska <//sv.wikipedia.org/wiki/Java_(programspr%C3%A5k)> * Tagalog <//tl.wikipedia.org/wiki/Java_(wikang_pamprograma)> * <//ta.wikipedia.org/wiki/%E0%AE%9C%E0%AE%BE%E0%AE%B5%E0%AE%BE_%E0%AE%A8%E0%A E%BF%E0%AE%B0%E0%AE%B2%E0%AE%BE%E0%AE%95%E0%AF%8D%E0%AE%95_%E0%AE%AE%E0%AF%8A%E0 %AE%B4%E0%AE%BF> * <//te.wikipedia.org/wiki/%E0%B0%9C%E0%B0%BE%E0%B0%B5%E0%B0%BE> * <//th.wikipedia.org/wiki/%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%E0%B8%88%E0%B8 %B2%E0%B8%A7%E0%B8%B2> * <//tg.wikipedia.org/wiki/Java> * Trke <//tr.wikipedia.org/wiki/Java_(programlama_dili)> * <//bug.wikipedia.org/wiki/Java> * <//uk.wikipedia.org/wiki/Java> * Vneto <//vec.wikipedia.org/wiki/Java> * Ting Vit <//vi.wikipedia.org/wiki/Java_(ng%C3%B4n_ng%E1%BB%AF_l%E1%BA%ADp_tr%C3%ACnh) > * <//wuu.wikipedia.org/wiki/%E7%A8%8B%E5%BA%8F%E7%BC%96%E5%88%B6%E8%A8%80%E8%A F%9DJava> * <//zh-yue.wikipedia.org/wiki/Java%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80> * emaitka <//bat-smg.wikipedia.org/wiki/Java> * <//zh.wikipedia.org/wiki/Java> * <//ka.wikipedia.org/wiki/%E1%83%AF%E1%83%90%E1%83%95%E1%83%90_(%E1%83%9E%E1% 83%A0%E1%83%9D%E1%83%92%E1%83%A0%E1%83%90%E1%83%9B%E1%83%98%E1%83%A0%E1%83%94%E1 %83%91%E1%83%98%E1%83%A1_%E1%83%94%E1%83%9C%E1%83%90)> * This page was last modified on 24 November 2011 at 15:22. * Text is available under the Creative Commons Attribution-ShareAlike License <//en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-Shar eAlike_3.0_Unported_License><//creativecommons.org/licenses/by-sa/3.0/>; additional terms may apply. See Terms of use <//wikimediafoundation.org/wiki/Terms_of_use> for details. Wikipedia is a registered trademark of the Wikimedia Foundation, Inc. <//www.wikimediafoundation.org/>, a non-profit organization. * Contact us <//en.wikipedia.org/wiki/Wikipedia:Contact_us> * Privacy policy <//wikimediafoundation.org/wiki/Privacy_policy>

* About Wikipedia </wiki/Wikipedia:About> * Disclaimers </wiki/Wikipedia:General_disclaimer> * Mobile view </w/index.php?title=Java_(programming_language)&useformat=mobile> * Wikimedia Foundation <//wikimediafoundation.org/> * Powered by MediaWiki <//www.mediawiki.org/>

Potrebbero piacerti anche