Developer Notes

TwitterFacebook
Get flash to fully experience Pearltrees
http://firstclassthoughts.co.uk/java/traps/big_decimal_traps.html Fortunately, it's now almost common sense for programmers not to use the simple types float 's and double 's for representing monetary values (or any other value preferably :-) due to the impression surrounded with these types. float 's and double 's are further restricted by a fixed set of bits to represent them, hence only a limited set of numbers can be held in these types. Armed with this knowledge, fun code examples can be produced such as the one from bytes.com Yes it's C code not Java, but fun never the less. The salvation seems to be the java.math.BigDecimal class as it has not only precision but is not represented by a fixed set of bits. Let's have some fun comparing its performance to double and discover some of the traps that lay in store for you the first time you use BigDecimal . Printing

Java Traps: Big Decimal

Java Traps: double

Many traps lay before the apprentice programmer as he walks the path of software development. This article illustrates, through a series of practical examples, the main traps of using Java's simple types double and float . Note, however, that to fully embrace precision in numerical calculations you a text book (or two) on the topic is required. Consequently, we can only scratch the surface of the topic. That being said, the knowledge conveyed here, should give you the fundamental knowledge required to spot or identify bugs in your code. It is knowledge I think any professional software developer should be aware of. http://firstclassthoughts.co.uk/java/traps/java_double_traps.html
http://leepoint.net/notes-java/data/expressions/22compareobjects.html Compares values for equality. Because this method is defined in the Object class, from which all other classes are derived, it's automatically defined for every class. However, it doesn't perform an intelligent comparison for most classes unless the class overrides it.

Java: ==, .equals(), compareTo(), and compare()

http://www.artima.com/designtechniques/index.html

Design Techniques Articles

This page provides links to the articles of my Design Techniques column in JavaWorld. These articles are based on material developed for my current book project, Interface Design . For related discussion forum topics, visit the Flexible Java Forum . The Articles
This tutorial covers the nuts and bolts of what exceptions are and how they work in the Java language and virtual machine. It discusses exception classes and objects, throwing and catching exceptions, the method invocation stack, the throws clause, checked vs. unchecked exceptions, and finally clauses. E xceptions are the customary way in Java to indicate to a calling method that an abnormal condition has occurred. This article is a companion piece to this month's Design Techniques installment, which discusses how to use exceptions appropriately in your programs and designs.

Exceptions in Java

http://www.artima.com/designtechniques/exceptions.html
http://www.ibm.com/developerworks/java/tutorials/j-introtojava1/section13.html Java Collections Most real-world applications deal with collections of things: files, variables, records from files, database result sets, and so forth. The Java language has a sophisticated Collections Framework that allows you to create and manage collections of objects of various types. This section won't teach you everything about Java Collections, but it will introduce the most commonly used collection classes and get you started with using them. Arrays

Introduction to Java programming, Part 1: Java language basics

Java Programming Notes

http://www.leepoint.net/notes-java/index.html Java Notes . These Java programming notes are written to fill in missing or weak topics in textbooks that I've taught from. Many pages are useful for reference, but not as an ordered tutorial. Some pages are still rough drafts, but I'm slowly working on fixing them. notes-java- 2007-04-25 .zip [2.4 MB]. Java Basics . I've started writing a more coherent tutorial called Java Basics .
Java Notes . These Java programming notes are written to fill in missing or weak topics in textbooks that I've taught from. Many pages are useful for reference, but not as an ordered tutorial. Some pages are still rough drafts, but I'm slowly working on fixing them. notes-java- 2007-04-25 .zip [2.4 MB]. Java Basics .

Java Programming Notes

http://leepoint.net/notes-java/index.html
These tutorials will introduce you to Java programming Language. You'll compile and run your very own Java application, using Sun's JDK. It is extremely easy to learn java programming skills, and in these parts, you'll learn how to write, compile, and run Java applications. http://www.freejavaguide.com/corejava.htm

Java tutorial for beginners | freejavaguide.com

http://java.com/en/download/installed.jsp?jre_version=1.7.0&vendor=Oracle+Corporation&os=Windows+XP&os_version=5.1 Java + Sony Pictures Experience the ultimate in High Definition with Blu-ray Disc– movies and from Sony Pictures Home Entertainment with new BD-Live– functionality. Sony Pictures Home Entertainment and Java are changing the way you watch movies.

Verify Java Version

Everyday I come to the office and I see people working. We all work in different ways. Sometimes we work by ourselves, sometimes we pair up to work together on a card we pick from the wall (card = task from the story board).

best practice

Let’s review some basic exception design guidelines, summarized from Object Design: Roles, Responsibilities, and Collaborations (Rebecca Wirfs-Brock and Alan McKean, Addison-Wesley, 2003). Don’t try to handle coding errors. Unless your software is required to take extraordinary measures in error scenarios, don’t spend a lot of time designing it to detect and recover from programming errors. In the case of an out-of-bounds array index, divide-by zero error, or any other programming error, the best strategy is to fail fast (and leave an audit trail of the problem that can be used to troubleshoot it).

Java Code Geeks

Please email your feedback for publication , letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : . If you want your message, your name or email kept confidential, not considered for public posting, please explicitly specify that. Unless you state otherwise, I will treat your message as a letter to the editor that I may or may not publish in the feedback section. After that, it will be too late to retract it. If you disagree with something I said, please quote it and cite the web page where you found it, tell me why you think it is wrong, and, if possible, provide some supporting evidence.

JDK : Java Glossary

Strings

Please email your feedback for publication , letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : . If you want your message kept confidential, not considered for public posting, please explicitly specify that. If you disagree with something I said, please quote it and cite the web page where you found it, tell me why you think it is wrong, and, if possible, provide some supporting evidence.

Canadian Mind Products Java & Internet Glossary

Learn the fundamentals of Java programming language through a variety of online tutorials. These tutorials teach the essential concepts behind building applications using various programming concepts and modules. This site can be used as a practical, example based guide for beginning programmers or those without much Object Oriented programming experience. Free Java Guide: This site lists General Java tutorials and specific Java programming topics for serious programming. In the case of sql tutorial, for each command, the SQL syntax will first be presented and explained, followed by an example. This site aims to teach beginners the building blocks of SQL.

Free Java Tutorials & Guide | Java programming source code

Patterns

Statics