New PDF release: Java: The Good Parts


By Jim Waldo

ISBN-10: 0596803737

ISBN-13: 9780596803735

What for those who may possibly condense Java all the way down to its absolute best good points and construct larger purposes with that less complicated model? during this publication, veteran solar Labs engineer Jim Waldo unearths which elements of Java are most valuable, and why these positive aspects make Java the most effective programming languages on hand.

each language ultimately builds up crud, Java integrated. The center language has develop into more and more huge and complicated, and the libraries linked to it have grown much more. easy methods to make the most of Java's most sensible beneficial properties via operating with an instance program through the booklet. you'll in contrast to the various good points Jim Waldo considers solid, yet they'll really assist you write larger code.
* learn the way the sort method and applications assist you construct large-scale software program
* Use exceptions to make code extra trustworthy and more straightforward to take care of
* deal with reminiscence immediately with rubbish assortment
* detect how the JVM offers portability, defense, and approximately bug-free code
* Use Javadoc to embed documentation in the code
* benefit from reusable facts buildings within the collections library
* Use Java RMI to maneuver code and knowledge in a allotted community
* learn the way Java concurrency constructs allow you to take advantage of multicore processors

Show description

Read Online or Download Java: The Good Parts PDF

Best java books

New PDF release: Erotic Triangles: Sundanese Dance and Masculinity in West

In West Java, Indonesia, all it takes is a woman’s voice and a drum beat to make a guy wake up and dance. each day, males there—be they scholars, pedicab drivers, civil servants, or businessmen—breach usual criteria of decorum and succumb to the rhythm at village ceremonies, weddings, political rallies, and nightclubs.

Get Java Unleashed PDF

Every little thing you must grasp Java! Java is redefining the aptitude and gear of the area vast internet. Java Unleasehed places the Java programming language at your fingertips via providing you with specialist suggestion on programming basics, embedding Java applets into your websites, and programming video games, multimedia, and animation.

New PDF release: Decompiling Java

Either Java and . internet use the belief of a "virtual machine," or VM. And whereas VMs are priceless for a few reasons, they undermine the protection of your resource code, simply because production could be reversed, or decompiled. Which makes this special e-book super worthwhile: you want to comprehend decompilation, to correctly shield your highbrow estate.

Download PDF by Shawn Bayern: JSTL in Action

JSTL is a vital simplification of the Java net platform. With JSTL, web page authors can now write dynamic pages utilizing typical HTML-like tags and an easy-to-learn expression language. JSTL is a customary from the Java group strategy, and its expression language turns into a part of JSP 2. zero. JSTL in motion indicates you ways to put in writing wealthy, dynamic web content with out programming.

Extra resources for Java: The Good Parts

Sample text

It lets the compiler tell you when things are out of whack. And it gives you a way of building units of meaning that can be shared, extended, and explained. It could be better, but as it is, it’s pretty good. A Real Problem | 21 CHAPTER 3 Exceptions Few features of the Java language are as generally reviled and misunderstood as Java exceptions. Exceptions have to be declared as part of the signature of a method, and if an exception is declared as being thrown by a method, any code calling that method either needs to throw that same exception or needs to occur within a try block, and the calling method must include code that will catch the exception and deal with it.

The Java exception design is the way it is in part to make it easier to deal with these problems. But it is also the way it is in part to ensure that if a programmer ignores these problems, he does so consciously. If you want to ignore exceptions, you have to do so explicitly; just hoping that they never happen won’t be accepted by the compiler. Long experience shows that in a crunch, the only way to make a programmer do the right thing is to not generate code if he does the wrong thing. How It Works To see how this really works, let’s revisit our baseball statistics package that we started in Chapter 2.

The construction of a Throwable requires getting a lot of state from the machine, so there is a lot of additional overhead as well. But mostly you shouldn’t do this because it is an abuse of the feature, using it in a way in which it was never intended to be used. Anyone looking at your code will wonder what you are doing, and understanding the code will be that much harder. Since the whole purpose of Java is to aid in writing large-scale systems that can be understood and maintained over time, using a trick like this defeats the purpose of the language.

Download PDF sample

Java: The Good Parts by Jim Waldo

by Jeff

Rated 4.70 of 5 – based on 48 votes