Under the settlement, Microsoft will pay Sun $700 million to resolve antitrust issues and $900 million to resolve patent issues. In addition, the companies will pay royalties for use of each other's technology, with Microsoft making an up-front payment of $350 million. Sun is expected to make royalty payments to Microsoft when Microsoft technology is incorporated into its server products.You can read Microsoft's official press release here. As part of the agreement, Sun will work with Microsoft to ensure that Java and its other products will integrate better with Microsoft's .Net and Windows operating systems.
Of course, the outlook is not all sunshine for Sun. Despite this windfall, Sun faces a cloudy future as outlined in this C|Net article. Apparently, they plan to cut 3,300 jobs, so Sun's stunning turnabout was surely motivated by economics.