Java set for a big leap forward

May 10, 2004, 10:39 AM —  Computerworld Singapore — 

Java technology is poised to take a big leap forward. The new version of Java will see language changes with the introduction of metadata, generics, typesafe enum and autoboxing of primitive types. The technology will also see a new JVM (Java virtual machine) and new Monitoring and Management APIs (application programming interfaces).

This announcement was made by James Gosling, also known as the father of Java, who was in town for the Java Developers' Conference held in Singapore last week.

And, in the fourth quarter of this year, Sun Microsystems Inc. will launch its Java Development Kit (JDK) version 1.5.

Gosling promised that this would be another huge leap for Java technology with major language changes. According to Gosling, the design team has spent a lot of effort on improving the new version.

"The metadata feature will accept annotation on code fragments, which will allow the usage of code that is self-describing," said Gosling. What this means, according to the feature summary on Sun's Web site, is that metadata is a language feature that will allow developers to avoid writing boilerplate code enabling tools to generate it 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. It also eliminates the need for maintaining "side files" that must be kept up to date with changes in source files. Instead the information can be maintained in the source file.

Another exciting improvement is generics, which is an enhancement to the type system that allows a type or method to operate on objects of various types while providing compile-time type safety. It adds compile-time type safety to the Collections Framework and eliminates the necessity for casting.

Typesafe enum is a flexible object-oriented enumerated type facility which allows programmers to create enumerated types with arbitrary methods and fields. Another new facility is autoboxing that aims to eliminate the drudgery of manual conversion between primitive types and wrapper types.

Converting between primitive types, like int, boolean, and their equivalent object-based counterparts like Integer and Boolean, can require unnecessary amounts of extra coding, especially if the conversion is only needed for a method call to the Collections API, for example. The 1.5 version leaves the conversion required to transition to an Integer and back to the compiler.

To maximize Java, Gosling suggested the usage of IDE (integrated development environment) tools that can assist in the whole development process. "There are tools for just about everybody," said Gosling. Come highly recommended is the NetBeans IDE which, said Gosling, is a core development tool which is also a platform for other tools being as extensible as NetBeans is.

NetBeans 3.6 was recently released with the look and feel of the UI clean up quite a bit, said Gosling. In fact, he said that he uses this version of NetBeans for his own development as well.

"Compare this with Eclipse and you will find this a lot better," he said. Another version, Netbeans 4.0, is expected to be out in the fourth quarter of 2004. NetBeans 4.0 has added in Apache Ant as its project management system.

Another development that caught Gosling attention is the development of both the JavaOpenGL and YAJOGLB (Yet Another Java OpenGL Binding).

"These are basically clones of Java 3D APIs but tuned to gaming needs," said Gosling. "It is less clean than Java 3D, but is as fast as possible."

» posted by abennett

Computerworld Singapore

I like it!
Post a comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Resources
White Paper

Symantec Backup Exec 12 and Backup Exec System Recovery 8 deliver industry leading Windows data protection and system recovery. Download this whitepaper to find out the top reasons to upgrade and how to get continuous data protection and complete system recovery.

Webcast

Data and system loss — from a hard drive failure, malicious attack, natural disaster, or simple human error — can happen anytime. Don’t leave your business vulnerable. Make sure you have a secure recovery strategy in place. Symantec's latest backup and system recovery technology can efficiently restore critical applications, individual emails and documents and even restore your entire system in minutes in the event of a loss.

White Paper

Businesses face a growing challenge to ensure that the IT environment is properly protected. Backup Exec 12 integrates with other applications in the Symantec family of products, to complement your current data protection strategy, keep your data securely backed up and make it recoverable when you need it most.

Free stuff

VMware ESX Server in the Enterprise
By Edward L. Haletky
Published Dec 29, 2007 by Prentice Hall.
Enter now! | Official rules | Sample chapter

Green IT
By Toby Velte, Anthony Velte, Robert C. Elsenpeter
To be published Oct. 10, 2008 by McGraw Hill Professional
Enter now! | Official rules | About the book

Featured Sponsor

AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.

In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability and performance at a fraction of traditional cost.

On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.

More Resources