Java is a town in Wyoming County, New York. The population was 2,057 at the 2010 census. The Town of Java is on the western border of Wyoming County.