Java, New York
|Java, New York|
|— Town —|
|• Total||47.3 sq mi (122.5 km2)|
|• Land||47.1 sq mi (122.0 km2)|
|• Water||0.2 sq mi (0.6 km2)|
|Elevation||1,522 ft (464 m)|
|• Density||43/sq mi ( 17/km2)|
|Time zone||Eastern (EST) (UTC-5)|
|• Summer (DST)||EDT (UTC-4)|
|GNIS feature ID||0979104|
The Town of Java was founded in 1832 from part of the Town of Arcade (then the Town of China).
According to the United States Census Bureau, the town has a total area of 47.3 square miles (123 km2), of which 47.1 square miles (122 km2) is land and 0.2 square miles (0.52 km2) (0.47%) is water. The largest body of water in Java is Java Lake.
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.
Communities and locations in Java 
- Cattaraugus Creek – A river, arising from Java Lake, that flows into Lake Erie.
- Curriers – A hamlet in the southwest corner of the town.
- Hick's Corners – A location east of Curriers.
- Java Center – A hamlet at the intersection of Routes 77 and 78.
- Java Lake – A hamlet on Java Lake Road, west of a small lake.
- Java Lake (lake) – A small lake that is the source of Cattaraugus Creek.
- Java – The hamlet of Java (also called Java Village), in the northwest corner of the town. This community is on Route 78. The Java School No. 1 was listed on the National Register of Historic Places in 2001.
- North Java – A location in the northeast part of the town. The Arcade and Attica Railroad was listed on the National Register of Historic Places in 1980.
- Waldos Corners – A hamlet at the intersection of Routes 78 and 98.
Notable people 
- Ed Don George, professional wrestler, born in North Java in 1905
- "American FactFinder". United States Census Bureau. Retrieved 2008-01-31.
- "National Register Information System". National Register of Historic Places. National Park Service. 2009-03-13.