Nothing. Hen, laying hen, broiler hen. The amount of feed they receive and the age they live to is about the only difference. The laying hen will live to produce eggs and the broiler hen will eat...
Java is a full fledged, class-based, object-oriented programming language. JavaScript is a proto-type based scripting language that is parsed on the clients browser.