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
Download 2 files (265 KB)Shell
# 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
FileSizeDetailsDownload
Sample Java fileSample.java763 BDownload
Large Java file (about 10,000 lines)Large.java264 KB9,999 linesDownload