Incremental Java
What's an Idiom?

What's an Idiom?

In English, an idiom is a local phrase which is not meant to be taken literally. For example, someone might say "it's raining cats and dogs". This doesn't mean that it's raining real cats and dogs, only that it is raining heavily.

In programming, an idiom is a commonly used piece of code in a language. People who frequently program in some language (like Java) use certain kinds of code for certain situations. They are so commonly used that you ought to learn and use them as well. It makes it easier to read other people's code and makes it easier for others to read your code.