Java (pronounced JAY-va) 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.
According to the United States Census Bureau, the town has a total area of 47.3 square miles (123 km), of which 47.1 square miles (122 km) is land and 0.2 square miles (0.52 km) (0.47%) is water. The largest body of water in Java is Java Lake, which is the headwaters of Cattaraugus Creek.
The west town line is the border of Erie County.
As of the census of 2000, there were 2,222 people, 807 households, and 590 families residing in the town. The population density was 47.2 people per square mile (18.2/km²). There were 1,035 housing units at an average density of 22.0 per square mile (8.5/km²). The racial makeup of the town was 99.14% White, 0.14% African American, 0.18% Native American, 0.09% Asian, and 0.45% from two or more races. Hispanic or Latino of any race were 0.41% of the population.
There were 807 households out of which 35.8% had children under the age of 18 living with them, 62.8% were married couples living together, 5.7% had a female householder with no husband present, and 26.8% were non-families. 20.6% of all households were made up of individuals and 9.3% had someone living alone who was 65 years of age or older. The average household size was 2.75 and the average family size was 3.21.
In the town, the population was spread out with 27.1% under the age of 18, 7.7% from 18 to 24, 30.9% from 25 to 44, 23.0% from 45 to 64, and 11.4% who were 65 years of age or older. The median age was 37 years. For every 100 females, there were 104.0 males. For every 100 females age 18 and over, there were 106.9 males.
The median income for a household in the town was $43,708, and the median income for a family was $47,120. Males had a median income of $35,703 versus $24,625 for females. The per capita income for the town was $18,398. About 3.9% of families and 6.3% of the population were below the poverty line, including 8.1% of those under age 18 and 7.4% of those age 65 or over.