New York is a county.
New York . The state has a maritime border in the Atlantic Ocean with Rhode Island , east of Long Island , as well as an international border with the Canadian provinces of Quebec to the north and Ontario to the northwest .