Javanese is the language spoken in Yogyakarta. The modern Javanese spoken in Yogyakarta began with the rise of the Mataram Empire in the 17th century where its written tradition was preserved by the writers of Yogyakarta and Surakarta. If you are spending more than 3 days in Yogyakarta, it is best to learn some basic Indonesian so that communication would not be a barrier.