Oak (programming language)
From Seo Wiki - Search Engine Optimization and Programming Languages
The name Oak was used by Gosling after an oak tree that stood outside his office.
The team originally considered using C++, but rejected the idea for several reasons (see Java history).
Initially, Gosling attempted to modify and extend C++ but soon abandoned that in favor of creating a new platform called Green and an entirely new language, which he called Oak, after the tree that stood just outside his office.
By the summer of 1992, they were able to demonstrate portions of the new platform including the Green OS, the Oak language, the libraries, and the hardware. Their first attempt, demonstrated on September 3, 1992, focused on building a PDA device named Star7 which had a graphical interface and a smart agent called "Duke" to assist the user.
Differences with Java
Oak was the basis for what Java 1.0 became later, but there were also some differences: Several concepts were planned in the Oak specification but remained not implemented in the original language because of time constraints:
- unsigned primitive types turned out to never be implemented in Java.
- The enum keyword for enumerated types was implemented in Java for Java 5.0.
- The assert keyword was also implemented in Java for Java 5.0
Other concepts were different than, or improved later, for Java:
- abstract methods were defined as in C++.
- The package private access level did not exist in Oak. Classes with no access modifier were considered private.
And finally some concepts were later scraped out:
- All exceptions were unchecked.
- It was possible by the unprotect keyword to write code that would not signal asynchronous exceptions.
- ↑ Jon Byous (April 2003). "Java Technology: The Early Years". Sun Microsystems. http://java.sun.com/features/1998/05/birthday.html. Retrieved 2009-08-02.
- ↑ Kieron Murphy (1996-04-10). "So why did they decide to call it Java?". javaworld.com. http://www.javaworld.com/javaworld/jw-10-1996/jw-10-javaname.html. Retrieved 2009-08-03. "The lawyers had told us that we couldn't use the name 'OAK' because [it was already trademarked by] Oak Technologies," said Frank Yellin, a senior engineer at Sun. "So a brainstorming session was held to come up with ideas for a new name"
- ↑ Jonathan I. Schwartz (2007-08-30). "Different Isn't Always Better, But Better's Always Different". http://blogs.sun.com/jonathan/entry/better_is_always_different. Retrieved 2009-08-02.
- ↑ Heinz Kabutz (2003-07-15). "Once Upon an Oak ...". artima.com. http://www.artima.com/weblogs/viewpost.jsp?thread=7555. Retrieved 2009-08-02.
- ↑ "Oak language specification". Sun Microsystems. https://duke.dev.java.net/green/OakSpec0.2.ps. Retrieved 2009-08-02.
- ↑ "Java and unsigned int, unsigned short, unsigned byte, unsigned long, etc. (Or rather, the lack thereof)". http://www.darksleep.com/player/JavaAndUnsignedTypes.html. Retrieved 2009-08-02.
- ↑ "A Simple Assertion Facility For the Java Programming Language". Sun Microsystems. http://java.sun.com/docs/books/jls/assert-spec.html. Retrieved 2009-08-02.