By Horstmann C.S., Cornell G.

* The skilled developer's complicated consultant to the Java 2 platform-fully up to date for JDK 1.3 liberate and JDK 1.4 free up, ordinary variation. * much more strong, real-world code samples than ever prior to! * New and remodeled insurance: XML, protection, networking, multithreading, collections, distant gadgets, JDBC API, JavaBeans part structure, Swing, and masses extra * CD-ROM comprises the entire code examples, distinctiveness for Java, liberate 2.0, group version, and the present model of the Java 2 SDK, normal variation for home windows, Solaris OE (SPARC/x86), and Linux.The number 1 complex consultant for critical programmers-fully up-to-date for JDK 1.3 free up and JDK 1.4 release.An crucial better half to the best-selling middle Java 2, Vol. I - basics (0-13-089468-0), center Java 2, quantity II: complex good points is now to be had in a revised and increased 5th version. It gives you an analogous real-world information you want to clear up even the main difficult programming difficulties and gives an all-new bankruptcy on XML and Java, plus completely made over assurance of many complex features-from collections to local equipment, safety to Swing.Cay Horstmann identifies the issues skilled Java platform builders stumble upon customarily, and provides insightful, expert-level counsel for addressing them-together with much more of the powerful, pattern code that experience made middle Java a global bestseller for 5 immediately years. you will achieve new insights into networking, distant items, JDBC API, internationalization, and a complete lot more.For skilled programmers, middle Java 2, quantity 2: complicated positive factors presents the solutions that they should take complete benefit of the ability of Java know-how and to get the task performed as successfully as possible.State-of-the-art info for complicated Java expertise improvement, together with: * completely up to date assurance of multithreading, collections, and networking * thoroughly revised insurance of distant gadgets * specified new bankruptcy on XML and Java * refined new thoughts for using JavaBeans(tm) part structure * complex GUI-building thoughts leveraging either Swing and AWT

Show description

Read Online or Download Core Java 2. Advanced Features PDF

Best programming: programming languages books

Durchstarten mit HTML5

HTML5 ist die neueste model der Markup-Sprache, die das internet noch einmal gehörig auf den Kopf stellt. Obwohl die Entwicklung noch nicht abgeschlossen ist, werden viele HTML5-Elemente von modernen Browsern schon jetzt unterstützt. Zeit additionally, die Neuerungen zu erkunden und sich healthy für die Zukunft zu machen.

Grundkurs JAVA: Von den Grundlagen bis zu Datenbank- und Netzanwendungen

Der erfolgreiche "Grundkurs Java" in der four. Auflage. Der Leser erh? lt eine strukturierte und anschauliche Einf? hrung in alle grundlegenden Aspekte der Java-Programmierung. Zahlreiche Programmbeispiele und ? bungsaufgaben demonstrieren die Anwendung der verschiedenen Konzepte und Sprachkonstrukte. Der Quellcode aller Programme und die L?

Extra resources for Core Java 2. Advanced Features

Sample text

It then becomes useful to categorize them by functionality. For example, consider an Internet browser. If many threads are trying to acquire images from a server and the user clicks on a "Stop" button to interrupt the loading of the current page, then it is handy to have a way of interrupting all of these threads simultaneously. By ViTo @ RoR & BT Core Java 2, Volume II Advanced Features The Java programming language lets you construct what it calls a thread group so you can simultaneously work with a group of threads.

This is where the InterruptedException comes in. When the interrupt method is called on a thread object that is currently blocked, the blocking call (such as sleep or wait) is terminated by an InterruptedException. There is no language requirement that a thread that is interrupted should terminate. Interrupting a thread simply grabs its attention. The interrupted thread can decide how to react to the interruption by placing appropriate actions into the catch clause that deals with the InterruptedException.

NOTE You'll find lots of published code where the InterruptedException is squelched, like this: try { sleep(delay); } catch (InterruptedException exception) {} // DON'T! Don't do that! Either set the "interrupted" flag of the current thread, or propagate the exception to the calling method (and ultimately to the run method). By ViTo @ RoR & BT Core Java 2, Volume II Advanced Features If you don't want to clutter up lots of nested methods with isInterrupted tests, you can turn the "interrupted" flag into an exception.

Download PDF sample

Core Java 2. Advanced Features by Horstmann C.S., Cornell G.
Rated 4.32 of 5 – based on 44 votes