Java 1.5 Tiger: a developer's notebook - preface

xiaoxiao2021-03-06  76

Foreword

Professional Java

Enterprise Java

Commercial Java

Because there are more important reasons, these are commonly discussed in these days in language. In the past few days, Java was seen as a language that could only make web games, and it feels that it is impossible to catch up with C, C . These big brothers. When AWT and SWING (still now SWT) become an important part of the Java language, Java has also developed to assume a broader task - database interaction, financial management, e-commerce, etc. Its speed can be more and more large compared to C. As a result, the core of the Java language has experienced significant improvements, and Java1.3 has 1.4, which is not only significantly changed, but also makes the Java platform more mature.

Now I have arrived at Java1.5-code TIGER (Tiger). In fact, it is Java5, version 1.5. It is also J2se, I assume it is Java 2, Standard Edition, 5, Version 1.5. Is this enough to make you confused? Thank you, no matter what this thing is called, these added things are there in the noisy value, it is no longer the previous java!

Tiger looks more like a brand new product rather than just amendment to an old language. Tiger is full of dramatic changes in simple Java you are familiar with. You can't just build its contour by reading its release documentation. Because these new features are important than the feature added in the past versions. I will call it Tiger in this book, and the province is called Java 2 Version 5 or Java1.5 and so on.

Regardless of Tiger will eventually be officially referred to, it brings such a new feature to this language, so that it will use nearly 200 pages to describe them. You will find that each page of this book is filled with code, examples, and concise instructions. There is no waste of waste. In fact, this is exactly what you need, a concise speed of next-generation Java. When you browse this book, you will knock your own list, take your heavy load to a new level, write down the annotations that test time-inspected, and the thread will be more efficient than before. Add all new features into your code, can't imagine how interesting this will. Until @, <,>, and% spread into your editor, you can feel these, oh, maybe I personally want to have more fun in the work room. Regardless of the reason, you will learn Tiger, in short, you will find more than the previously dominated tool, more changes than any version from Java's initial version 1.0. Ignite your code editor, fasten your seat belt, ready to hit this runway.

Let us tame this old tiger!

organization

This book has many courses and catalogs. For courses, you should read from beginning to end. And for your directory you can jump through them, this is nothing. To a large extent, you can browse the directory or index, you can find what you are looking for. However, most of this book is to have interrelated (eg generics, for / in statements, and autoboxing), you may find that you must understand the current topics must understand the knowledge mentioned in the previous chapter. In this case, you should browse the chapter referenced. No matter how extra learns is a good thing, isn't it?

This book is written

This book is an unusual product that is the fruit of David Flanagan and Brett McLaughlin. David is engaged in the Fifth Edition of Java In A Nutshell, but he hopes that it is more early to introduce the main changes in the language in Tiger earlier than the publication schedule. Brett, the main editor of the innovative series of "developer`s notebooks", he is eager to have a little Tiger content in this series of books. The production process of the whole book is like this:

David has studied Tiger's new features in order to "Java In A Nutshell" and record them. He sent a draft written to Brett.

Brett excited intoxicated in these pieces, he almost rewriting them, joined new examples, and reorganized all the information again according to the format of the developer`s Notebook series.

So this book is almost all Brett, and this is based on the David study. The taste of this book is written and the charming style belongs to Brett. Readers who have read this book and "Java in a nutshell" will find a lot of identical pieces. In many cases, the code example used by Brett also appears in "Java In A Nutshell", such an example will be marked in this book.

About code instance

This book has hundreds of code instances, all over the entire book. Some of the code in the book is completely column, and some is just listing the pieces. Perhaps some readers like themselves, but most of us have not so much time. Because of this, all examples are compressed into a Java archive file for download. Also, this process of compilation (especially the settings of the class path) has always been one of the most vibration issues of Java. In order to help everyone, this archive includes Ant BuildFile: build.xml. What you need is to download and install Ant, make full use of the benefits of Builfile, I strongly recommend you to do this. Ant installation is simple, if you need to refer to "Ant: the definitive guide (o'reilly). Your directory structure looks like this:

?

???? |

?

???? - SRC (contains build.xml)

?

???? |

?

???? - Classes

?

Go to your local SRC directory, enter Ant. If you don't have the correct installation Ant you will get an error, otherwise you will see the following:

?

? $ {basedir} / code / src> Ant

?

?? buildfile: build.xml

?

??

?

?? Compile:

?

??????? [echo] Compiling all java files ...

?

?????? [javac] Compiling 41 Source Files to Code / Classes

?

?????? [javac] NOTE: CODE / SRC / COM / OREILLY / TIGER / CH06 / DepRecateDtester.java

?

????????????????? Uses Or Overrides a Deprecated API.

?

?????? [javac] NOTE: Recompile with -xlint: DepRecation for details.

?

?????? [javac] NOTE: Some INPUT FILES USE UNCHECKED or Unsafe Operations.

?

?????? [javac] NOTE: Recompile with -xlint: unchecked for details.?

??????

?

?? Build successful

?

?? Total Time: 9 seconds

?

Other tasks in Build.XML I will leave you I discover.

You can download these instance code at www.oreilly.com/catalog/javaadn/.

contact us

Please address comments and questions concerned this book to the publicisher:

?

?? O'Reilly Media, Inc.

?

??

1005 Gravenstein Highway North

?

??

Sebastopol

,

CA

95472

?

?? (800) 998-9938 (in the

United State

oral

Canada

)

?

?? (707) 829-0515 (International Or Local)

?

?? (707) 829-0104 (FAX)

?

WE HAVE A Web Page for this Book, Where We List Errata, Examples, or Any Additional Information. You can Access this Page At:

Www.oreilly.com/catalog/javaadn/

To Comment Or ask Technical Questions about this book, send email to:

Bookquestions@oreilly.com

For More Information About Our Books, Conferences, Resource Center, And The O'Reilly Network, See Our Web Site At:

Www.oreilly.com/

转载请注明原文地址:https://www.9cbs.com/read-120761.html

New Post(0)