Apple Inc on Monday became the first company to hit a $3 trillion stock market value, before ending the day a hair below that milestone, as investors bet the iPhone maker will keep launching best-selling products as it explores new markets such as automated cars and virtual reality.