Java Basics: breakdown of the top ten most useless features Java



Java has very large, and filled with a lot of them do not commonly used functions, JavaLobby in an article named its top ten most useless features.

10) const, goto

What? Yes, they are Java keywords, but they do nothing.

9) Java for a little fun

Such as Personal Java, JavaOS.

8) the index of the Jar

The index of the Jar Jar is the file that contains a special index file (META-INF/INDEX.LIST), the file used to specify which packages in the Jar.In Ant, the available index = "true". Its purpose is to Applet and Webstart application can delay load Jar file, and to improve class loading speed.

7) bin directory of the most exe files

For example, javah.exe, javadoc.exe, jdb.exe, jar.exe. They have been Ant, Maven and IDE instead.

Translator: Although less direct use of these tools, but learn to use them is still very good.For example, at a time, we do not have Ant, Maven, or a tool like Eclipse, especially if just for a simple application, directly on the command will be more convenient.

6) Applet

It is very popular 10 years ago, since then, its popularity has been declining.But will Applet Java SE 6 update 10 in the comeback.

Translator: Applet still has its space.To say there is a problem that is the whole problem of Java desktop applications.

5) CORBA

The API may be from the developer, "you most want to be removed from the Java API" actually select the winner.

4) javax.accessibility and accessibility

This package begins with Java 1.2, but no how to be used.On the one hand, Swing can really do a lot for you, but on the other hand, it can not do everything for you.In particular, the empty text boxes and text fields to be defined.

3) MIDI Library

Yes, Java has built-in MIDI API. So, from 1.1, Java will be able to play music.At that time, they added a source library, sound sounds better.Now, there is no sound card sound audio library so good.

On modular JRE, most of the time, CORBA was considered not to be downloaded, and audio library API is probably the most unnecessary.

2) Java 6 API

This is the most in need of Apple to blame of the Department, because they decided not to support 32-bit platform, Java 6, then there will be many API and procedures to stop the Java 5 Department.

1) asserts

In Java1.4 in, Sun joined the assertion.I remember some comments about Java was the lack of assertion / pre / post-conditions, so we added this feature.

But let us face it, the assertion is indeed rarely used.