It really depends on on how the interview went: If you think you gave the impression that you're insecure about your capabilities, writing an email might confirm that impression. If you think you gave the impression that you are the self-confident anal-retentive type, the mail might confirm that, too.
If you do decide to write the mail, don't say something that might be interpreted as "I've looked it up and I know better now.". Anyone could do that. But you could e.g. write that you thought about the interview on your way home, and realized that you probably misunderstood one of the questions (thinking about "pass-by-reference" semantics in C++ instead of Java).
(Whatever you do, I don't think a mail like that would change your chances for getting a job much either way. If I interview people I look for the one with the best technical abilities. If someone beat you at that, a single question won't change it. If the best candidates seem to have similar technical abilities, I pick the one I liked better on a personal level. Guessing technical abilities is pretty much guesswork, but I do have to work with the person every day, after all.)