JAVA sample file
java_sample_file_1MB.java
1.0 MB
text/x-java
SHA256 verified
File details
Filename
java_sample_file_1MB.javaSize1.0 MB (1048590 bytes)
MIME type
text/x-javaExtension
.javaSHA256
4ae8e9510c22a8a637f1e3bcd2639e7beee47ddd0fa6fae8961003d4aef8592dDownload commands
Use in scripts and tests
curl -L -o java_sample_file_1MB.java \
https://samplefile.com/samples/download/code/java/java_sample_file_1MB.java/
wget -O java_sample_file_1MB.java \
https://samplefile.com/samples/download/code/java/java_sample_file_1MB.java/
import requests
url = "https://samplefile.com/samples/download/code/java/java_sample_file_1MB.java/"
resp = requests.get(url)
with open("java_sample_file_1MB.java", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/java/java_sample_file_1MB.java/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("java_sample_file_1MB.java", buf);
# Download and verify SHA256
curl -L -o java_sample_file_1MB.java https://samplefile.com/samples/download/code/java/java_sample_file_1MB.java/
echo "4ae8e9510c22a8a637f1e3bcd2639e7beee47ddd0fa6fae8961003d4aef8592d java_sample_file_1MB.java" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/java/java_sample_file_1MB.java/").content
assert hashlib.sha256(data).hexdigest() == "4ae8e9510c22a8a637f1e3bcd2639e7beee47ddd0fa6fae8961003d4aef8592d"
More JAVA files
Other JAVA Sample Files
| Filename | Size | SHA256 | Download |
|---|---|---|---|
java_sample_file_200KB.java |
200.0 KB | e435917c94c8012b… |
Download |
java_sample_file_2MB.java |
2.0 MB | f281b7c07b79b2f7… |
Download |
java_sample_file_500KB.java |
500.0 KB | da4d5706a1d364fd… |
Download |
java_sample_file_50KB.java |
50.0 KB | 9abf9b457a62d2b3… |
Download |
java_sample_file_5MB.java |
5.0 MB | ec500da543c53c92… |
Download |
Learn more