The Northern Territory (NT) occupies Australia's central north. Its eastern boundary is not a state border but a coastline:
The state of Queensland lies to the northeast and east, separated by the Gulf. The NT/QLD land border runs roughly north-south along the 138°E meridian, meeting the Gulf at the coast. So, moving east from the NT interior, you hit the Gulf first; Queensland is across the water (or northeast via land border). The Coral Sea lies further east of Queensland.
Key NT eastern settlements: Nhulunbuy (Gove) on the Gulf; Borroloola near the QLD border.