1850, originally a kind of coffee grown on Java and nearby islands of modern Indonesia. By early 20c., coffee generally. The island name is shortened from Sanskrit Yavadvipa "Island of Barley," from yava "barley" + dvipa "island."[java etymology, java origin, 英语词源]