No need to book tickets on line as this is a commuter route. Buy the tickets on the day or a day beforehand.
Thanks for the info
Try not to visit on a Sunday, as you will not be able to wander around the magnificent St. George's Chapel.
Also check the official website for possible Castle closures in May-June. There are usually a few.