In a majority of states, state judges are chosen by popular election. Federal judges are appointed by the president and confirmed by the Senate.