The Tokyo-based company earned a better-than-expected net income in the March quarter, helped by investment gains.