Japan and China agreed to work together on Friday to battle the coronavirus outbreak in bilateral cooperation helping offset historic frictions over a maritime territorial dispute.