Yes, the term refers to a cup of coffee. In the 17th century, the Dutch colonized the island of Java, which is now part of Indonesia. They planted lots of coffee there and began exporting it to the rest of the world. It was successful enough to have become a generic word for coffee.
My WebpageJava training in chennai