What happened Is the tech-stock trouncing over? It surely felt that way to many investors on Friday, as they witnessed strong gains with some of the sector's major titles. Two bucking the recent downward trend of their grouping gained nicely on the day. Apple (NASDAQ: AAPL) finished Friday nearly 2.5% higher, while both publicly-traded share classes of Google parent Alphabet (NASDAQ: GOOG)(NASDAQ: GOOGL) enjoyed a more than 5% rise. So what Savvy investors know that a bear market is an ideal time to buy quality companies. Since stocks within a sector can frequently more or less move in concert, a great number of once high-flying techies have come down considerably in price. Despite the devotion they've inspired among investors (and, in Apple's case, users), both Apple and Alphabet have hewed to this rule, and are not exceptions. Both companies' stocks are down by roughly 20% this year. That, by the way, is worse than the just-under-18% slide of the bellwether S&P 500 index. Yet even a superficial analysis of Alphabet's and Apple's businesses shows that the two tech industry mainstays are powerhouses in their respective segments, with excellent growth considering how long they've been on the scene. It feels inevitable, then, that bargain-seekers would pounce on both once their respective share prices dipped low enough. Now what That level of tolerance seems to have been reached, but we should be cautious here. There is still much to be concerned about with the wider global economy. And while fears of a deep recession seem a bit exaggerated, the world has to navigate a stack of challenges in the near to midterm future. That said, even with a tighter economy, advertisers are unlikely to sharply cut their spending on Google ads, while consumers should continue to find a way to pay for Apple's enduringly popular phones, tablets, and premium apps. 10 stocks we like better than AppleWhen our award-winning analyst team has a stock tip, it can pay to listen. After all, the newsletter they have run for over a decade, Motley Fool Stock Advisor, has tripled the market.* They just revealed what they believe are the ten best stocks for investors to buy right now... and Apple wasn't one of them! That's right -- they think these 10 stocks are even better buys. See the 10 stocks *Stock Advisor returns as of June 2, 2022 Suzanne Frey, an executive at Alphabet, is a member of The Motley Fool's board of directors. Eric Volkman has positions in Apple. The Motley Fool has positions in and recommends Alphabet (A shares), Alphabet (C shares), and Apple. The Motley Fool recommends the following options: long March 2023 $120 calls on Apple and short March 2023 $130 calls on Apple. The Motley Fool has a disclosure policy.Source