Stocks ended in positive territory for the third-straight session Monday, as investors geared up for the start of the second quarter earnings season, but technology shares declined, weighing on the Nasdaq.

(Read More: After-Hours Buzz:Alcoa, WD-40, Equifax & More)