There are many things that make the MacBook pro a nice machine for software developers. The default version of Java Standard Edition development environment is not one of those things.
Although Java SE does come pre-installed on most OSX versions, it is the soon to be unsupported Java 6 version (unsupported that is without paying Oracle of course).
Whilst its fairly easy to install Java SE 7 on the Mac, its a little more interesting when it comes to setting it as the default Java runtime environment. If you also want to try installing OpenJDK 7, then there is a little more discovery to be done when locating the install files.