Pular para o conteúdo

Conheça Walt Disney World

Java version history

Java Web Start, first introduced for J2SE 1.3, allows provision of applications over the Web by clicking a desktop icon or a link on a website.

The Java language has undergone several changes since JDK 1.0 as well as numerous additions of classes and packages to the standard library. Since J2SE 1.4, the evolution of the Java language has been governed by the Java Community Process (JCP), which uses Java Specification Requests (JSRs) to propose and specify additions and changes to the Java platform. The language is specified by the Java Language Specification (JLS); changes to the JLS are managed under JSR 901.

In addition to the language changes, much more dramatic changes have been made to the Java class library over the years, which has grown from a few hundred classes in JDK 1.0 to over three thousand in J2SE 5. Entire new APIs, such as Swing and Java2D, have been introduced, and many of the original JDK 1.0 classes and methods have been deprecated.

Some programs allow conversion of Java programs from one version of the Java platform to an older one (for example Java 5.0 backported to 1.4) (see Java backporting tools).

Contents

JDK 1.0 (January 23, 1996)

Codename Oak. Initial release[1][2] The first stable version was the JDK 1.0.2. is called Java 1[2]

JDK 1.1 (February 19, 1997)

Major additions included:[3]

J2SE 1.2 (December 8, 1998)

Codename Playground. This and subsequent releases through J2SE 5.0 were rebranded retrospectively Java 2 and the version name "J2SE" (Java 2 Platform, Standard Edition) replaced JDK to distinguish the base platform from J2EE (Java 2 Platform, Enterprise Edition) and J2ME (Java 2 Platform, Micro Edition). Major additions included:[4]

J2SE 1.3 (May 8, 2000)

Codename Kestrel. The most notable changes were:[5][6]

J2SE 1.4 (February 6, 2002)

Codename Merlin. This was the first release of the Java platform developed under the Java Community Process as JSR 59. Major changes included:[7][8]

Language changes
Library improvements

J2SE 5.0 (September 30, 2004)

Codename Tiger. Originally numbered 1.5, which is still used as the internal version number.[9] This version was developed under JSR 176.

J2SE 5.0 entered its end-of-life on April 8, 2008 and is no longer supported by Sun as of November 3, 2009.[10]

Tiger added a number of significant new language features:[11][12]

  • Generics: Provides compile-time (static) type safety for collections and eliminates the need for most typecasts (type conversion). (Specified by JSR 14.)
  • Metadata: Also called annotations; allows language constructs such as classes and methods to be tagged with additional data, which can then be processed by metadata-aware utilities. (Specified by JSR 175.)
  • Autoboxing/unboxing: Automatic conversions between primitive types (such as int) and primitive wrapper classes (such as Integer). (Specified by JSR 201.)
  • Enumerations: The enum keyword creates a typesafe, ordered list of values (such as Day.MONDAY, Day.TUESDAY, etc.). Previously this could only be achieved by non-typesafe constant integers or manually constructed classes (typesafe enum pattern). (Specified by JSR 201.)
  • Varargs: The last parameter of a method can now be declared using a type name followed by three dots (e.g. void drawtext(String... lines)). In the calling code any number of parameters of that type can be used and they are then placed in an array to be passed to the method, or alternatively the calling code can pass an array of that type.
  • Enhanced for each loop: The for loop syntax is extended with special syntax for iterating over each member of either an array or any Iterable, such as the standard Collection classes, using a construct of the form:
void displayWidgets (Iterable<Widget> widgets) {
     for (Widget w: widgets) {
         w.display();
     }
}

This example iterates over the Iterable object widgets, assigning each of its items in turn to the variable w, and then calling the Widget method display() for each item. (Specified by JSR 201.)

There were also the following improvements to the standard libraries:

Java 5 is the last release of Java to officially support the Microsoft Windows 9x line (Windows 95, Windows 98, Windows ME). [2] Unofficially, Java SE 6 Update 7 (1.6.0.7) is the last version of Java to be shown working on this family of operating systems. [3]

Java SE 6 (December 11, 2006)

Codename Mustang. As of this version, Sun replaced the name "J2SE" with Java SE and dropped the ".0" from the version number.[14] Internal numbering for developers remains 1.6.0.[15] This version was developed under JSR 270.

During the development phase, new builds including enhancements and bug fixes were released approximately weekly. Beta versions were released in February and June 2006, leading up to a final release that occurred on December 11, 2006. The current revision is Update 29 which was released in October 2011.

Major changes included in this version:[16][17]

  • Support for older Win9x versions dropped. Unofficially Java 6 Update 7 is the last release of Java shown to work on these versions of Windows. This is believed[by whom?] to be due to the major changes in Update 10.
  • Scripting Language Support (JSR 223): Generic API for tight integration with scripting languages, and built-in Mozilla JavaScript Rhino integration
  • Dramatic performance improvements for the core platform,[18][19] and Swing.
  • Improved Web Service support through JAX-WS (JSR 224)
  • JDBC 4.0 support (JSR 221).
  • Java Compiler API (JSR 199): an API allowing a Java program to select and invoke a Java Compiler programmatically.
  • Upgrade of JAXB to version 2.0: Including integration of a StAX parser.
  • Support for pluggable annotations (JSR 269)[20]
  • Many GUI improvements, such as integration of SwingWorker in the API, table sorting and filtering, and true Swing double-buffering (eliminating the gray-area effect).
  • JVM improvements include: synchronization and compiler performance optimizations, new algorithms and upgrades to existing garbage collection algorithms, and application start-up performance.[21]

Java 6 updates

After Java 6 release, Sun released several updates which, while not changing any public API, greatly enhanced end-user usability.

Release Release Date Highlights
Java SE 6 Update 10[22] 2008-10-15 Major changes for this update include:[22][23]
  • Java Deployment Toolkit, a set of JavaScript functions to ease the deployment of applets and Java Web Start applications.[24]
  • Java Kernel, a small installer including only the most commonly used JRE classes. Other packages are downloaded when needed.
  • Enhanced updater.
  • Enhanced versioning and pack200 support: server-side support is no longer required.[25]
  • Java Quick Starter, to improve cold start-up time.
  • Improved performance of Java2D graphics primitives on Windows, using Direct3D and hardware acceleration.
  • A new Swing look and feel called Nimbus and based on synth.[26]
  • Next-Generation Java Plug-In: applets now run in a separate process and support many features of Web Start applications.[27]
Java SE 6 Update 11[28] 2008-12-03
Java SE 6 Update 12 2008-12-12 This release includes the 64-bit Java plug-on (for 64-bit web browsers only), Windows Server 2008 support, and performance improvements of Java and JavaFX applications.[29]
Java SE 6 Update 14[30] 2009-05-28 This release includes extensive performance updates to the HotSpot JIT compiler, compressed pointers for 64-bit machines, as well as support for the G1 (Garbage First) low pause garbage collector.[31][32]

The -XX:+DoEscapeAnalysis option directs the HotSpot JIT compiler to use escape analysis to determine if local objects can be allocated on the stack instead of the heap.[33]

Some developers have noticed an issue introduced in this release which causes debuggers to miss breakpoints seemingly randomly.[34] Sun has a corresponding bug, which is tracking the issue. The workaround applies to the Client and Server VMs.[35] Using the -XX:+UseParallelGC option will prevent the failure. Another workaround is to roll back to update 13, or to upgrade to update 16.

Java SE 6 Update 15 2009-08-04 Introduced the patch-in-place functionality[36]
Java SE 6 Update 16 2009-08-11 Fixes the issue introduced in update 14 which caused debuggers to miss breakpoints.[37]
Java SE 6 Update 17[38] 2009-11-04
Java SE 6 Update 18[39] 2010-01-13
Java SE 6 Update 19[40] 2010-03-30
Java SE 6 Update 20[41] 2010-04-15
Java SE 6 Update 21[42] 2010-07-07
Java SE 6 Update 22[43] 2010-10-12
Java SE 6 Update 23[44] 2010-12-08
Java SE 6 Update 24[45] 2011-02-15
Java SE 6 Update 25 2011-03-21 Includes "tiered" compilation in the Server VM that enables it to start quickly as does the Client VM, while achieving superior peak performance. This feature is enabled by specifying -server and -XX:+TieredCompilation command options.[46]
Java SE 6 Update 26[47] 2011-06-07
Java SE 6 Update 27[48] 2011-08-16
Java SE 6 Update 29[49] 2011-10-18

Java SE 7 (July 28, 2011)

Java 7 (codename Dolphin[50]) is a major update to Java which was launched on July 7 of 2011[51] and was made available for developers on July 28, 2011.[52] The development period was organized into thirteen milestones; on February 18, 2011, milestone 13, the last milestone was reached.[53][54] On average, 8 builds (which generally included enhancements and bug fixes) were released per milestone. The Feature list at the Open JDK 7 project lists many of the feature changes.

The feature additions for Java 7[55]

  • Strings in switch[58]
  • Automatic resource management in try-statement[59]
  • Improved type inference for generic instance creation[60]
  • Simplified varargs method declaration[61]
  • Binary integer literals[62]
  • Allowing underscores in numeric literals[63]
  • Catching multiple exception types and rethrowing exceptions with improved type checking[64]
  • Concurrency utilities under JSR 166[65]
  • New file I/O library to enhance platform independence and add support for metadata and symbolic links. The new packages are java.nio.file and java.nio.file.attribute[66][67]
  • Library-level support for Elliptic curve cryptography algorithms
  • An XRender pipeline for Java 2D, which improves handling of features specific to modern GPUs
  • New platform APIs for the graphics features originally planned for release in Java version 6u10
  • Enhanced library-level support for new network protocols, including SCTP and Sockets Direct Protocol
  • Upstream updates to XML and Unicode

Lambda (Java upcoming implementation of Lambda programming), Jigsaw (Java upcoming implementation of modules), and part of Coin were dropped from Java 7. Java 8 will be implemented with the remaining features in late 2012.[68]

Java 7 updates

Oracle plans to issue updates to the Java 7 family on a quarterly basis.

Release Release Date Highlights
Java SE 7[69] 2011-07-07 Initial Java 7 Release
Java SE 7 Update 1[70] 2011-10-18 20 Security Fixes, other bug fixes
Java SE 7 Update 2[71] 2011-10-27 preview b11

Java SE 8

Java 8 is expected in Summer 2013 [72] and will include at a minimum the features that were planned for Java 7 but later deferred.

  • Modularization of the JDK under Project Jigsaw[73][74]
  • Language-level support for lambda expressions (officially, lambda expressions; unofficially, closures) under Project Lambda.[75] There was an ongoing debate in the Java community on whether to add support for lambda expressions.[76][77] Sun later declared that lambda expressions would be included in Java 8 and asked for community input to refine the feature.[78]
  • Parts of project Coin that are not included in Java 7
  • Tight integration with JavaFX [79]

Java 9

At JavaOne 2011, Oracle discussed features they hope to have in Java 9, including better support for multi-gigabyte heaps, better native code integration, and a self-tuning JVM.[80]

See also

References

  1. ^ Version 1.0 press release, Sun.
  2. ^ a b http://www.oracle.com/technetwork/java/chapter1-159190.pdf
  3. ^ Version 1.1 press release, Sun.
  4. ^ Version 1.2 press release, Sun.
  5. ^ Version 1.3 press release, Sun.
  6. ^ Version 1.3 full list of changes, Sun.
  7. ^ Version 1.4 press release.
  8. ^ Version full 1.4 list of changes.
  9. ^ Version 5 release notes, Sun.
  10. ^ Java SE Downloads - Previous Release - JDK 5
  11. ^ Version 1.5 press release.
  12. ^ Version 1.5 full list of changes.
  13. ^ Goetz, Brian (2006). Java Concurrency in Practice. Addison-Wesley. p. xvii. ISBN 0-321-34960-1. 
  14. ^ Java brand naming.
  15. ^ Version 6, Java webnotes, Sun.
  16. ^ Version 1.6 press release.
  17. ^ Version 1.6 full list of changes.
  18. ^ Java Lobby.
  19. ^ Mustang’s HotSpot, Sun weblogs.
  20. ^ Darcy, Joe (2008-08-03). "An apt replacement". http://blogs.sun.com/darcy/date/20090727. Retrieved 2009-07-29. 
  21. ^ "Java SE 6 Performance White Paper". 2007-10-25. http://java.sun.com/performance/reference/whitepapers/6_performance.html. Retrieved 2010-02-04. 
  22. ^ a b Java SE 6 Update 10 Overview
  23. ^ Introducing Java SE 6 Update 10
  24. ^ Java Deployment Toolkit
  25. ^ Version Download and Pack200 Support
  26. ^ Nimbus
  27. ^ Release Notes for the Next-Generation Java Plug-In Technology
  28. ^ "Sun Java 6 Update 11 Available Now, Waiting on JavaFX". FindMySoft. http://www.findmysoft.com/news/Sun-Java-6-Update-11-Available-Now-Waiting-on-JavaFX/. Retrieved 2009-11-13. 
  29. ^ "Changes in 1.6.0_12 (6u12)". Sun Microsystems. http://java.sun.com/javase/6/webnotes/6u12.html. Retrieved 2009-05-30. 
  30. ^ "Update Release Notes". Sun Microsystems. http://java.sun.com/javase/6/webnotes/ReleaseNotes.html. Retrieved 2009-05-30. 
  31. ^ Humble, Charles (2008-05-13). "JavaOne: Garbage First". infoq.com. http://www.infoq.com/news/2008/05/g1. Retrieved 2008-09-07. 
  32. ^ Coward, Dany (2008-11-12). "Java VM: Trying a new Garbage Collector for JDK 7". http://blogs.sun.com/theplanetarium/entry/java_vm_trying_a_new. Retrieved 2008-11-15. 
  33. ^ "Java SE 6 Update 14 Release Notes". Sun Microsystems. http://java.sun.com/javase/6/webnotes/6u14.html. Retrieved 2010-01-04. 
  34. ^ "Breakpoints fail to hit under JDK 1.6.0_14". https://bugs.eclipse.org/bugs/show_bug.cgi?id=279137#c14. Retrieved 2009-07-14. 
  35. ^ "Bug ID: 6862295 JDWP threadid changes during debugging session (leading to ignored breakpoints)". http://bugs.sun.com/view_bug.do?bug_id=6862295. Retrieved 2009-07-22. 
  36. ^ "Changes in 1.6.0_15 (6u15)". Sun Microsystems. http://www.oracle.com/technetwork/java/javase/6u15-142514.html. 
  37. ^ "Changes in 1.6.0_16 (6u16)". Sun Microsystems. 2009-08-11. http://java.sun.com/javase/6/webnotes/6u16.html. Retrieved 2009-08-11. 
  38. ^ "Changes in 1.6.0_17 (6u17)". Sun Microsystems. 2009-11-04. http://java.sun.com/javase/6/webnotes/6u17.html. Retrieved 2009-11-13. 
  39. ^ "Changes in 1.6.0_18 (6u18)". Sun Microsystems. 2010-01-13. http://java.sun.com/javase/6/webnotes/6u18.html. Retrieved 2010-01-18. 
  40. ^ "Changes in 1.6.0_19 (6u19)". Sun Microsystems. 2010-03-30. http://java.sun.com/javase/6/webnotes/6u19.html. Retrieved 2010-03-30. 
  41. ^ "Changes in 1.6.0_20 (6u20)". Sun Microsystems. 2010-04-15. http://java.sun.com/javase/6/webnotes/6u20.html. Retrieved 2010-04-15. 
  42. ^ "Changes in 1.6.0_21 (6u21)". Sun Microsystems. 2010-07-07. http://java.sun.com/javase/6/webnotes/6u21.html. Retrieved 2010-07-07. 
  43. ^ "Changes in 1.6.0_22 (6u22)". Oracle Corporation. 2010-10-12. http://www.oracle.com/technetwork/java/javase/6u22releasenotes-176121.html. Retrieved 2010-10-12. 
  44. ^ "Java SE 6 Update 23". Oracle Corporation. 2010-12-08. http://www.oracle.com/technetwork/java/javase/6u23releasenotes-191058.html. Retrieved 2010-12-08. 
  45. ^ "Java SE 6 Update 24". Oracle Corporation. 2011-02-15. http://www.oracle.com/technetwork/java/javase/6u24releasenotes-307697.html. Retrieved 2011-02-15. 
  46. ^ "Java SE 6 Update 25". Oracle Corporation. 2011-04-11. http://www.oracle.com/technetwork/java/javase/6u25releasenotes-356444.html. Retrieved 2011-04-24. 
  47. ^ "Java SE 6 Update 26". Oracle Corporation. 2011-06-07. http://www.oracle.com/technetwork/java/javase/6u26releasenotes-401875.html. Retrieved 2011-06-07. 
  48. ^ "Java SE 6 Update 27". Oracle Corporation. 2011-08-16. http://www.oracle.com/technetwork/java/javase/6u27-relnotes-444147.html. Retrieved 2011-08-16. 
  49. ^ "Java SE 6 Update 29". Oracle Corporation. 2011-10-18. http://www.oracle.com/technetwork/java/javase/6u29-relnotes-507960.html. Retrieved 2011-10-18. 
  50. ^ JDK7, Sun.
  51. ^ http://www.oracle.com/webapps/events/ns/EventsDetail.jsp?p_eventId=134208&src=7299693&src=7299693&Act=18
  52. ^ "JDK 7 Schedule". http://openjdk.java.net/projects/jdk7/. 
  53. ^ JDK 7 at OpenJDK
  54. ^ http://openjdk.java.net/projects/jdk7/milestones/
  55. ^ Miller, Alex. "Java 7". http://tech.puredanger.com/java7. Retrieved 2008-05-30. 
  56. ^ "Compressed oops in the Hotspot JVM". OpenJDK. http://wikis.sun.com/display/HotSpotInternals/CompressedOops. Retrieved 2010-04-16. 
  57. ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/enhancements.html#javase7
  58. ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/strings-switch.html
  59. ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/try-with-resources.html
  60. ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/type-inference-generic-instance-creation.html
  61. ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/non-reifiable-varargs.html
  62. ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/binary-literals.html
  63. ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/underscores-literals.html
  64. ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/catch-multiple.html
  65. ^ "Concurrency JSR-166". http://gee.cs.oswego.edu/dl/concurrency-interest/index.html. Retrieved 2010-04-16. 
  66. ^ http://java.sun.com/docs/books/tutorial/essential/io/fileio.html
  67. ^ http://java.sun.com/docs/books/tutorial/essential/io/legacy.html
  68. ^ "Re-thinking JDK 7". 2010-09-08. http://blogs.sun.com/mr/entry/plan_b. Retrieved 2010-09-20. 
  69. ^ Java SE 7 Release Notes
  70. ^ Java SE 7 Update 1Release Notes
  71. ^ [1]
  72. ^ "JavaOne 2011 Keynote". Oracle. http://blogs.oracle.com/javaone/resource/java_keynote/slide_16_full_size.gif. 
  73. ^ "Project Jigsaw". OpenJDK. http://openjdk.java.net/projects/jigsaw/. 
  74. ^ "Java Module-System Requirements — DRAFT 12". Oracle. http://openjdk.java.net/projects/jigsaw/doc/draft-java-module-system-requirements-12. 
  75. ^ "Java 7 Features". Sun Microsystems. 2010-02-09. http://openjdk.java.net/projects/jdk7/features/#f700. Retrieved 2010-04-16. 
  76. ^ Gafter, Neal (2006-08-18). "Closures for Java". http://gafter.blogspot.com/2006/08/closures-for-java.html. Retrieved 2008-03-09. 
  77. ^ Gosling, James (2008-01-31). "Closures". http://blogs.sun.com/jag/entry/closures. Retrieved 2008-03-09. 
  78. ^ Reinhold, Mark (2009-11-28). "Closures for Java". http://blogs.sun.com/mr/entry/closures. Retrieved 2009-11-24. 
  79. ^ http://javafx.com/roadmap/#4
  80. ^ "JavaOne: JavaFX 2, Java on iOS". http://drdobbs.com/blogs/java/231900029. 

External links

Personal tools
  • Log in / create account
Namespaces
Variants
Actions
Navigation
Toolbox
Print/export