Their main revenue is from two things. Firstly from their job boards which will be significantly reduced as few companies are hiring. Then secondly from advertising which will also be reduced during times of recession.
The product you think of as stack overflow that will probably is really just a way for them to drive the right kind of traffic to those revenue sources.