Practical Java¿ Programming Language Guide
Now that Java is being used for real-world projects, the experts are figuring out what works and what doesn't when it comes to coding style. Peter Haggar'sPractical Java: Programming Language Guidecompiles a remarkably useful set of over 60 coding tips that will make your programs more maintainable and perform better. Chances are that this title has something to offer every programmer who works with Java.This book is organized simply and effectively with 68 practical tips (or in the author's terms "praxes") for writing better Java code. Tips are grouped into sections, such as general tips, objects and equality, exception handling, and performance and multithreading. The book illustrates each tip with short code excerpts demonstrating effective coding strategies (plus several common Java pitfalls).The book contains numerous standout sections, including the proper way to writeequalsmethods for custom classes, tips for writing more efficient classes, and numerous do-it-yourself techniques for optimizing code. (As the author suggests, not all of today's Java compilers will do this optimization for you.) The book contains several sections that should be read by every Java developer, and though some tips are more obscure, there's certainly something to benefit every reader.While C++ programmers have had books on coding style for years, Java is only now coming into its own with titles like this one. With its concise format, no-nonsense prose style, and expert-eye perspective on Java,Practical Java: Programming Language Guideshows the same maturing refinement as the language it lucidly describes.--Richard DraganTopics covered: Java programming tips, understanding references, final and static keywords, usinginstanceof, tips for garbage collection, customequalsmethods, exception handling tips, usingfinallyblocks, using exceptions with constructors, performance tips, compile-time vs. run-time code optimization, usingStringBuffer, minimizing object creation, arrays, Java native code, multithreading tips, thesynchronizedkeyword, spin locks, Java interfaces for emulating multiple inheritance, theabstractkeyword, theclonemethod and immutable objects, tips for finalize methods.