Chicken is also a little tricky to get right the first time. Of course, it depends on the size of the piece, or the thickness of the breast...like cooking on a grill you'll get there by trial and error.
Basically everything is prone to drying out if you leave it cooking too long. But when you do get it right, it's good.
If you have trouble cooking chicken (or anything else) to the correct doneness, get a good quality instant read digital thermometer. I started using one years ago and it changed my life. It's difficult to know when something is done by estimation, but the thermometer takes all the guesswork out of it.
I like the Thermopop made by Thermoworks. Incredibly easy to use, and I believe it's around $30.

