Let's clear up a geographic misconception: no U.S. state "has" an ocean. Oceans are vast planetary bodies; states have coastlines on oceans. New Jersey boasts 130 miles of Atlantic Ocean shoreline—the Jersey Shore—stretching from Sandy Hook in the north to Cape May in the south.
This coastline defines the state's identity: barrier islands, estuarine ecosystems, maritime commerce, and a tourism economy generating billions annually. The Atlantic shapes New Jersey's climate (moderating temperature extremes), ecology (critical horseshoe crab spawning grounds, migratory bird stopovers), and history (colonial ports, naval engagements, Ellis Island's proximity).
So while New Jersey doesn't "have" oceans—no state does—it possesses one of the most economically and ecologically significant Atlantic coastlines in the nation.