For the first point, the answer can be found on Meta Stack Exchange, posted by Sklivvz:
That's the historical number of questions that we put on the homepage.
Simply put, while re-designing the home page, 96 was the number they settled on, and it's been kept at that for historical reasons.
As for the second, if you follow the link in the answer I link to above, you'll find Help us redesign the Stack Overflow homepage which should provide more context. To me, personally, it just seems like an arbitrary number, along with one of the points in that question:
- The homepage should still be, fundamentally, a list of questions that reflect what the site is about. New users who stumble upon the site for the first time should see "ah, so this is what this website is all about". It should be obvious.
Basically, it's not meant to be a comprehensive list of questions that you might be interested in which goes on and on indefinitely, but rather it's giving you a taste of what you can expect to find if you look further. An appetizer, so to speak.
Java
tag (which I assume will have a few "popular"/"recent" updates) and the number stayed unchanged at 96 (or 3 pages + 6 entries @ 30 per page at least). So, it's a 96 entry limit by default it would seem.