History of the Java™ programming language
On 23 May 1995, John Gage, the director of the Science Office of the Sun Microsystems along with Marc Andreesen, co-founder and executive vice president at Netscape announced to an audience of SunWorldTM that Java technology wasn't a myth and that it was a reality and that it was going to be incorporated into Netscape Navigator.
At the time the total number of people working on Java was less than 30. This team would shape the future in the next decade and no one had any idea as to what was in store. From being the mind of an unmanned vehicle on Mars to the operating environment on most of the consumer electronics, e.g. cable set-top boxes, VCRs, toasters and also for personal digital assistants (PDAs). Java has come a long way from its inception. Let's see how it all began.
Earlier programming languages
Before Java emerged as a programming language, C++ was the dominant player in the trade. The primary goal of the creators of Java was to create a language that could tackle most of the things that C++ offered while getting rid of some of the more tedious tasks that came with the earlier languages.
Computer hardware went through a performance and price revolution from 1972 to 1991. Better, faster hardware was available at ever lower prices and the demand for big and complex software exponentially increased. To accommodate the demand, new development technologies were invented.
The C language developed in 1972 by Dennis Ritchie had taken a decade to become the most popular language amongst programmers working on PCs and similar platforms (other languages, like COBOL and FORTRAN, dominated the mainframe market). But, with time programmers found that programming in C became tedious with its structural syntax. Although, people attempted to solve this problem, it would be later that a new development philosophy was introduced, one named Object-Oriented Programming. With OOP, you can write code that can be reused later without rewriting the code over and over again. In 1979, Bjarne Stroustrup developed C++, an enhancement to the C language with included OOP fundamentals and features.
The Green team
Behind closed doors, a project was initiated in December of 1990, whose aim was to create a programming tool that could render obsolete the C and C++ programming languages. Engineer Patrick Naughton had become extremely frustrated with the state of Sun's C++ and C APIs (Application Programming Interfaces) and tools. While he was considering to move towards NeXT, he was offered a chance to work on new technology and the Stealth Project was started, a secret nobody but he knew.
This Stealth Project was later named the Green Project when James Gosling and Mike Sheridan joined Patrick. Over the period of time that the Green Project teethed, the prospects of the project started becoming clearer to the engineers working on it. No longer was its aim to create a new language far superior to the present ones, but it aimed to target the language to devices other than the computer.
Staffed at 13 people, they began work in a small office on Sand Hill Road in Menlo Park, California. This team would be called Green Team henceforth in time. The project they underwent was chartered by Sun Microsystems to anticipate and plan for the "next-wave" in computing. For the team, this meant at least one significant trend, that of the convergence of digitally controlled consumer devices and computers.
The team started thinking of replacing C++ with a better version, a faster version, a responsive version. But the one thing they hadn't thought of, as of yet, was that the language they were aiming for had to be developed for an embedded system with limited resources. An embedded system is a computer system scaled to a minimalistic interface demanding only a few functions from its design. For such a system, C++ or any successor would seem too large as all the languages at the time demanded a larger footprint than what was desired. And, other than this, the language lacked some other important features as well. The team thus had to think in a different way to go about solving all these problems.
Co-founder of Sun Microsystems, Bill Joy, envisioned a language combining the power of Mesa and C in a paper he wrote for the engineers at Sun named Further. Gathering ideas, Gosling began work on enhancing C++ and named it "C++ ++ --", a pun on the evolutionary structure of the language's name. The ++ and -- meant, putting in and taking out stuff. He soon abandoned the name and called it Oak after the tree that stood outside his office.
|Lisa Friendly||Yes||Yes||FirstPerson employee and member of the Java Products Group|
|John Gage||Science Office (Director), Sun Microsystems|
|James Gosling||Yes||Yes||Yes||Lead engineer and key architect of the Java technology|
|Bill Joy||Co-founder and VP, Sun Microsystems; Principal designer of the UC Berkeley, version of the UNIX® OS|
|Jonni Kanerva||Yes||Java Products Group employee, author of The Java FAQ1|
|Tim Lindholm||Yes||Yes||FirstPerson employee and member Java Products Group|
|Scott McNealy||Chairman, President, and CEO of Sun Microsystems|
|Patrick Naughton||Yes||Yes||Green Team member, FirstPerson co-founder|
|George Paolini||Corporate Marketing (Director), Sun's Java Software Division|
|Kim Polese||Yes||FirstPerson product marketing|
|Lisa Poulson||Original director of public relations for Java technology (Burson-Marsteller)|
|Wayne Rosing||Yes||FirstPerson President|
|Eric Schmidt||Former Sun Microsystems Chief Technology Officer|
|Mike Sheridan||Yes||Green Team member|
The demise of an idea, birth of another
By now, the work on Oak had been significant but come the year 1993, people saw the demise of set-top boxes, interactive TV and the PDAs. A failure that completely ushered the inventors' thoughts to be reinvented. Only a miracle could make the project a success now. And such a miracle awaited anticipation.
National Center for Supercomputing Applications (NCSA) had just unveiled its new commercial web browser for the internet the previous year. The focus of the team, now diverted towards where they thought the "next-wave" of computing would be — the internet. The team then divulged into the realms of creating the same embeddable technology to be used in the web browser space calling it an applet — a small application. Keeping all of this in mind, the team created a list of features tackling the C++ problems. In their opinion, the project should ...
- .. be simple and gather tested fundamentals and features from the earlier languages in it,
- .. have standard sets of APIs with basic and advanced features bundled with the language,
- .. get rid of concepts requiring direct manipulation of hardware (in this case, memory) to make the language safe,
- .. be platform independent and may written for every platform once (giving birth to the WORA idiom),
- .. be able to manipulate network programming out-of-the-box,
- .. be embeddable in web browsers, and ...
- .. have the ability for a single program to multi-task and do multiple things at the same time.
The team now needed a proper identity and they decided on naming the new technology they created Java ushering a new generation of products for the internet boom. A by-product of the project was a cartoon named "Duke" created by Joe Parlang which became its identity then.
Finally at the SunWorldTM conference, Andreesen unveiled the new technology to the masses. Riding along with the explosion of interest and publicity in the Internet, Java quickly received widespread recognition and expectations grew for it to become the dominant software for browser and consumer applications.
Initially Java was owned by Sun Microsystems, but later it was released to open source; the term Java was a trademark of Sun Microsystems. Sun released the source code for its HotSpot Virtual Machine and compiler in November 2006, and most of the source code of the class library in May 2007. Some parts were missing because they were owned by third parties, not by Sun Microsystems. The released parts were published under the terms of the GNU General Public License, a free software license.
Unlike C and C++, Java's growth is pretty recent. Here, we'd quickly go through the development paths that Java took with age.
Initial Release (versions 1.0 and 1.1)
Introduced in 1996 for the Solaris, Windows, Mac OS Classic and Linux, Java was initially released as the Java Development Kit 1.0 (JDK 1.0). This included the Java runtime (the virtual machine and the class libraries), and the development tools (e.g., the Java compiler). Later, Sun also provided a runtime-only package, called the Java Runtime Environment (JRE). The first name stuck, however, so usually people refer to a particular version of Java by its JDK version (e.g., JDK 1.0).
Java 2 (version 1.2)
Introduced in 1998 as a quick fix to the former versions, version 1.2 was the start of a new beginning for Java. The JDKs of version 1.2 and later versions are often called Java 2 as well. For example, the official name of JDK 1.4 is The Java(TM) 2 Platform, Standard Edition version 1.4.
- Major changes include:
- Rewrite the event handling (add Event Listeners)
- Change Thread synchronizations
- Introduction of the JIT-Just in time compilers
Kestrel (Java 1.3)
Released in 8 May 2000. The most notable changes were:
- HotSpot JVM included (the HotSpot JVM was first released in April, 1999 for the J2SE 1.2 JVM)
- RMI was modified to support optional compatibility with CORBA
- Java Naming and Directory Interface (JNDI) included in core libraries (previously available as an extension)
- Java Platform Debugger Architecture (JPDA)
- Synthetic proxy classes
Merlin (Java 1.4)
Released in 6 February 2002, Java 1.4 has improved programmer productivity by expanding language features and available APIs:
- Regular Expression
- XML processing
- Cryptography and Secure Socket Layer (SSL)
- Non-blocking I/O (NIO)
Tiger (version 1.5.0; Java SE 5)
Released in September 2004
- Major changes include:
- Generics - Provides compile-time type safety for collections :and eliminates the drudgery of casting.
- Autoboxing/unboxing - Eliminates the drudgery of manual conversion between primitive types (such as int) and wrapper types (such as Integer).
- Enhanced for - Shorten the for loop with Collections use.
- Static imports - Lets you import all the static part of a class.
- Annotation/Metadata - Enabling tools to generate code and deployment descriptors from annotations in the source code. This leads to a "declarative" programming style where the programmer says what should be done and tools emit the code to do it. Annotations can be inspected through source parsing or by using the additional reflection APIs added in Java 5.
- JVM Improvements - Most of the run time library is now mapped into memory as a memory image, as opposed to being loaded from a series of class files. Large portion of the runtime libraries will now be shared among multiple JVM instances.
Mustang (version 1.6.0; Java SE 6)
Released on 11 December 2006.
What's New in Java SE 6:
- Web Services - First-class support for writing XML web service client applications.
- Database - No more need to find and configure your own JDBC database when developing a database application. Developers will also get the updated JDBC 4.0, a well-used API with many important improvements, such as special support for XML as an SQL datatype and better integration of Binary Large OBjects (BLOBs) and Character Large OBjects (CLOBs) into the APIs.
- More Desktop APIs - GUI developers get a large number of new tricks to play like the ever popular yet newly incorporated SwingWorker utility to help you with threading in GUI apps, JTable sorting and filtering, and a new facility for quick splash screens to quiet impatient users.
- Monitoring and Management - The really big deal here is that you don't need to do anything special to the startup to be able to attach on demand with any of the monitoring and management tools in the Java SE platform.
- Compiler Access - Really aimed at people who create tools for Java development and for frameworks like JavaServer Pages (JSP) or Personal Home Page construction kit (PHP) engines that need to generate a bunch of classes on demand, the compiler API opens up programmatic access to javac for in-process compilation of dynamically generated Java code. The compiler API is not directly intended for the everyday developer, but for those of you deafened by your screaming inner geek, roll up your sleeves and give it a try. And the rest of us will happily benefit from the tools and the improved Java frameworks that use this.
- Pluggable Annotations allows programmer to write annotation processor so that it can analyse your code semantically before javac compiles. For example, you could write an annotation processor that verifies whether your program obeys naming conventions.
- Desktop Deployment - At long last, Java SE 6 unifies the Java Plug-in technology and Java WebStart engines, which just makes sense. Installation of the Java WebStart application got a much needed makeover.
- Security - Java SE 6 has simplified the job of its security administrators by providing various new ways to access platform-native security services, such as native Public Key Infrastructure (PKI) and cryptographic services on Microsoft Windows for secure authentication and communication, Java Generic Security Services (Java GSS) and Kerberos services for authentication, and access to LDAP servers for authenticating users.
- The -lities: Quality, Compatibility, Stability - Bug fixes ...
Dolphin (version 1.7.0; Java SE 7)
Released on 28 July 2011.
Feature additions for Java 7 include:
- JVM support for dynamic languages, following the prototyping work currently done on the Multi Language Virtual Machine
- Compressed 64-bit pointers Available in Java 6 with -XX:+UseCompressedOops
- Small language changes (grouped under a project named Coin):
- Strings in switch
- Automatic resource management in try-statement
- Improved type inference for generic instance creation
- Simplified varargs method declaration
- Binary integer literals
- Allowing underscores in numeric literals
- Catching multiple exception types and rethrowing exceptions with improved type checking
- Concurrency utilities under JSR 166
- 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
- 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's implementation of lambda functions), Jigsaw (Java's implementation of modules), and part of Coin were dropped from Java 7. Java 8 will be released with the remaining features in summer 2013.
- "Java Technology: The Early Years". Sun Microsystems. http://java.sun.com/features/1998/05/birthday.html. Retrieved 9 May 2008.
- "History of Java". Lindsey, Clark S.. http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter01/history.html. Retrieved 7 May 2008.
- Structural syntax is a linear way of writing code. A program is interpreted usually at the first line of the program's code until it reaches the end. One cannot hook a later part of the program to an earlier one. The flow follows a linear top-to-bottom approach.
- "Java Platform Standard Edition 6". Sun Microsystems. http://www.sun.com/aboutsun/media/presskits/2006-1211/. Retrieved 9 May 2008.
- Miller, Alex. "Java 7". http://tech.puredanger.com/java7. Retrieved 2008-05-30.
- "Compressed oops in the Hotspot JVM". OpenJDK. https://wikis.oracle.com/display/HotSpotInternals/CompressedOops. Retrieved 2012-08-01.
- "Java Programming Language Enhancements". Download.oracle.com. http://download.oracle.com/javase/7/docs/technotes/guides/language/enhancements.html#javase7. Retrieved 2013-01-15.
- "Strings in switch Statements". Download.oracle.com. http://download.oracle.com/javase/7/docs/technotes/guides/language/strings-switch.html. Retrieved 2013-01-15.
- "The try-with-resources Statement". Download.oracle.com. http://download.oracle.com/javase/7/docs/technotes/guides/language/try-with-resources.html. Retrieved 2013-01-15.
- "Type Inference for Generic Instance Creation". Download.oracle.com. http://download.oracle.com/javase/7/docs/technotes/guides/language/type-inference-generic-instance-creation.html. Retrieved 2013-01-15.
- "Improved Compiler Warnings When Using Non-Reifiable Formal Parameters with Varargs Methods". Download.oracle.com. http://download.oracle.com/javase/7/docs/technotes/guides/language/non-reifiable-varargs.html. Retrieved 2013-01-15.
- "Binary Literals". Download.oracle.com. http://download.oracle.com/javase/7/docs/technotes/guides/language/binary-literals.html. Retrieved 2013-01-15.
- "Underscores in Numeric Literals". Download.oracle.com. http://download.oracle.com/javase/7/docs/technotes/guides/language/underscores-literals.html. Retrieved 2013-01-15.
- "Catching Multiple Exception Types and Rethrowing Exceptions with Improved Type Checking". Download.oracle.com. http://download.oracle.com/javase/7/docs/technotes/guides/language/catch-multiple.html. Retrieved 2013-01-15.
- "Concurrency JSR-166". http://gee.cs.oswego.edu/dl/concurrency-interest/index.html. Retrieved 2010-04-16.
- "File I/O (Featuring NIO.2) (The Java™ Tutorials > Essential Classes > Basic I/O)". Java.sun.com. 2008-03-14. http://java.sun.com/docs/books/tutorial/essential/io/fileio.html. Retrieved 2013-01-15.
- "Legacy File I/O Code (The Java™ Tutorials > Essential Classes > Basic I/O)". Java.sun.com. 2012-02-28. http://java.sun.com/docs/books/tutorial/essential/io/legacy.html. Retrieved 2013-01-15.
- "JavaOne 2011 Keynote". Oracle. http://blogs.oracle.com/javaone/resource/java_keynote/slide_16_full_size.gif.