You don't shake hands, you wai - by putting your hands in front of you like you're praying, with the tips of your index fingers touching your nose. The higher the hands are, and the lower your bow, the more respect you're showing. A wai can be used for greeting, apology, gratitude.
You've got to admire a culture that uses a single gesture to say both thank you and I'm sorry.