JAR (Java Archive) files are used for object signing in JavaScript, particularly for signing applets and scripts to verify their authenticity and security. This cryptographic signing ensures code comes from a trusted source. Style sheets, image rollovers, and Netcaster channels don't use JAR files.