Japan and Sri Lanka agreed Thursday to strengthen bilateral cooperation in Indian Ocean maritime security and coast guard patrols, including greater exchanges between their defense authorities to fight piracy.