February 05, 2004 OT: Java 1.5 language enhancements | ||||
---|---|---|---|---|
| ||||
slashdot has an article about the Java 1.5 beta. I thought I'd post some of the language enhancements since they'll seem very familiar: Autoboxing/Unboxing (isn't automatic in D but is simple) Enhanced for Loop (foreach) Generics Metadata (I assume this is like C#) Static Import (not sure what this is) Typesafe enums varargs see http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#lang Also the collections framework has been updated for 1.5: http://java.sun.com/j2se/1.5.0/docs/guide/collections/index.html |
February 05, 2004 Re: OT: Java 1.5 language enhancements | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben Hinkle | Static Import is where you would import a classes constants only: import static java.awt.BorderLayout.*; getContentPane().add(new JPanel(), CENTER); Lets you use CENTER instead of BorderLayout.CENTER. This link is a good overview of what is new: http://java.sun.com/developer/technicalArticles/releases/j2se15/ Ben Hinkle wrote: > slashdot has an article about the Java 1.5 beta. I thought I'd post some of > the language enhancements since they'll seem very familiar: > > Autoboxing/Unboxing (isn't automatic in D but is simple) > Enhanced for Loop (foreach) > Generics > Metadata (I assume this is like C#) > Static Import (not sure what this is) > Typesafe enums > varargs > > see http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#lang > > Also the collections framework has been updated for 1.5: > http://java.sun.com/j2se/1.5.0/docs/guide/collections/index.html > > > > > |
Copyright © 1999-2021 by the D Language Foundation