Neither is any easier to learn or use -- for the most part, they're going to be effectively identical from the Java perspective. Postgres has some technical advantages, but Mysql remains more popular; no one knows why.
Ubuntu is designed so that the default configuration should be good enough until you know what you need. Or it blows up in your hands. In our office we say "suck it and see" ie try it out!