Although Bali and Lombok are more popular beach destinations, Java can offer plenty of relaxing spots that are just as beautiful. If you are looking for a quiet place, visit Karimunjawa with its many small islands, such as Geleang Island, and silky clean beaches in the middle of the turquoise ocean. There is also a rich marine life here that is perfect for snorkelling and diving.
If you don't want to go too far from Jakarta, try Thousand Islands. The name is a bit of exaggeration as there are only 110 islands here with only 36 open to the public. However, they are definitely worth a visit as every one of them is a true tropical paradise.
Yogyakarta also has plenty of great beaches. Pok Tunggal beach is located 2 hours away from the city. You can climb the cliffs for magnificent views or just relax by the clear blue ocean. Parangtritis beach is about a 1 hour drive from Yogyakarta. It is considered to be a sacred place making it popular for meditation and spiritual ceremonies.
Almost every region in Java has cozy spots for tranquility and natural beauty. You can relax on a beach in Indonesia all year round, but the best period for sunbathing is during the dry season from May to September.