Download Core Java 2. Advanced Features by Horstmann C.S., Cornell G. PDF

By Horstmann C.S., Cornell G.

* The skilled developer's complex advisor to the Java 2 platform-fully up-to-date for JDK 1.3 liberate and JDK 1.4 unlock, usual variation. * much more strong, real-world code samples than ever ahead of! * New and remodeled insurance: XML, safety, networking, multithreading, collections, distant gadgets, JDBC API, JavaBeans part structure, Swing, and lots more and plenty extra * CD-ROM contains all of the code examples, distinctiveness for Java, unencumber 2.0, group variation, and the present model of the Java 2 SDK, general variation for home windows, Solaris OE (SPARC/x86), and Linux.The no 1 complicated consultant for severe programmers-fully up to date for JDK 1.3 free up and JDK 1.4 release.An integral significant other to the best-selling middle Java 2, Vol. I - basics (0-13-089468-0), center Java 2, quantity II: complicated positive aspects is now to be had in a revised and increased 5th version. It can provide a similar real-world tips you want to clear up even the main hard programming difficulties and gives an all-new bankruptcy on XML and Java, plus completely made over insurance of many complicated features-from collections to local tools, protection to Swing.Cay Horstmann identifies the issues skilled Java platform builders come upon in general, and gives you insightful, expert-level information for addressing them-together with much more of the powerful, pattern code that experience made center Java a global bestseller for 5 instantly years. you are going to 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 aspects presents the solutions that they should take complete good thing about the ability of Java know-how and to get the task performed as successfully as possible.State-of-the-art info for complex Java know-how improvement, together with: * completely up to date insurance of multithreading, collections, and networking * thoroughly revised insurance of distant items * precise new bankruptcy on XML and Java * subtle new concepts for using JavaBeans(tm) part structure * complex GUI-building options leveraging either Swing and AWT

Show description

Read Online or Download Core Java 2. Advanced Features PDF

Similar programming: programming languages books

Fortran 90 for Fortran 77 programmers

The good fortune of Fortran because the most important programming language within the box of medical and numerical computing is due, partially, to its regular evolution. Following the booklet of criteria in 1966 and 1978, the committee answerable for their improvement, X3J3, labored along side an ISO committee to enhance a regular compatible to be used within the 1990's and past.

Additional resources for Core Java 2. Advanced Features

Example text

You then add threads to the thread group by specifying the thread group in the thread constructor. Thread t = new Thread(g, threadName); To find out whether any threads of a particular group are still runnable, use the activeCount method. activeCount() == 0) { // all threads in the group g have stopped } To interrupt all threads in a thread group, simply call interrupt on the group object. interrupt(); // interrupt all threads in group g We'll discuss interrupting threads in greater detail in the next section.

There is no point in keeping the program running if all remaining threads are daemons. Thread Groups Some programs contain quite a few threads. 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.

155. 156. 157. 158. 159. 160. 161. 162. 163. 164. 165. 166. 167. 168. 169. 170. 171. 172. 173. 174. 175. 176. 177. 178. 179. 180. 181. 182. 183. 184. 185. 186. 187. Thread By ViTo @ RoR & BT Core Java 2, Volume II • Advanced Features static void sleep(long millis) sleeps for the given number of milliseconds Parameters: millis the number of milliseconds to sleep In the previous sections, you learned what is required to split a program into multiple concurrent tasks. Each task needs to be placed into a run method of a class that extends Thread.

Download PDF sample

Rated 4.77 of 5 – based on 25 votes