Code · 2 files
Sample Java Files
Java is a statically typed JVM language. This sample uses a modern record type. The Java sample is a small program — a customer record, a VIP check and a formatted total — that is the same in every language we offer, so you can compare them side by side.
All 2 java files
Download all with curl
# 2 files, 265 KB in total
while read -r url; do curl -LO --fail "$url"; done <<'EOF'
https://files.samplefiles.com/code/java/Sample.java
https://files.samplefiles.com/code/java/Large.java
EOF| File | Size | Details | Download |
|---|---|---|---|
| Sample Java fileSample.java | 763 B | Download | |
| Large Java file (about 10,000 lines)Large.java | 264 KB | 9,999 lines | Download |