Oracle’s attorneys said previous negotiations show the Alphabet unit knew it needed a license but decided to risk building Android without one, while Google’s attorneys said Sun executives didn’t believe a license was necessary to use Java as Google did.