In the US, local/state judges often are elected (probably varies by state). Federal judges can be impeached.