The Dow Jones Industrials (^DJI -1.25%) missed out on its bid to set a new all-time record high, giving up more extensive gains from earlier Thursday, and closing the day with a gain of 32 points. Many investors pay close attention to the Dow as a benchmark of the broader stock market, given that it has components that come from nearly all of the economy's different industries. But even as the Dow Jones Industrials have had a tough time staying close to the break-even point for the year, the Dow Jones Utilities (DJINDICES: ^DJU) have had an incredibly strong performance, setting six new record all-time closing highs during 2014, and enjoying double-digit percentage gains a third of the way through the year.

^DJI Chart

^DJI data by YCharts.

Why utilities have soared
When you look at the components of the Dow Jones Utilities, you'll find that the biggest gains have come from a stock that has struggled in recent years. Exelon (EXC 1.67%) has risen more than 35% this year, as the nuclear-power specialist has finally gotten some relief in the form of higher natural-gas prices. Exelon relies on higher fossil-fuel costs in order to give its nuclear power plants a competitive advantage, and rock-bottom natural-gas prices in the past few years limited Exelon's opportunity to provide cheaper sources of power.

Source: Exelon.

Meanwhile, Public Service Enterprise Group (PEG 0.48%) has seen the potential benefits from capital spending, and has put its money where its mouth is with plans to spend $12 billion on projects during the next five years. Given its role as part of power-grid operator PJM Interconnection, Public Service needs to make sure that it does its part to maintain transmission lines, switching stations, and other key elements of the grid infrastructure in order to sustain the health of the grid, even as demand steadily increases. Its stock has risen 26% since the end of 2013 as investors assess its ability to profit from the trend.

More broadly speaking, utility stocks tend to be tied to interest rates and, so far in 2014, rates haven't behaved anything like what most investors had expected. With the Federal Reserve scaling back on its bond purchases, it was natural to think that rates would rise, and that should have hurt rate-sensitive utilities. But rates have actually dropped so far this year, and the attractiveness of utility dividend yields has driven further investor demand for their shares.

Given the high levels of regulation that most utilities function under, investors shouldn't expect the Dow Jones Utilities to provide the same growth that the Dow Jones Industrials offer. But for those looking for a solid set of businesses with ample and stable dividend income, the Utilities might well be a better bet than the Industrials, even as utility stocks hit record highs.