Add fresher-qa module: 50 Java interview questions for freshers, one runnable demo each, asserted transcripts, javac error captures

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b5DfjBGLBr7F5km2AN
This commit is contained in:
Claude
2026-11-11 19:41:13 +05:30
parent 22181e1a17
commit 46a74443b1
24 changed files with 1602 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Compiles each file in src/broken/ (they are NOT part of the Maven build) and captures javac's own message.
set -uo pipefail
cd "$(dirname "$0")/../src/broken"
out=../../output/07-compile-errors.txt
: > "$out"
for f in FinalOverride CheckedNotHandled LossyCast MissingReturnAndUnreachable; do
echo "=== javac $f.java ===" >> "$out"
javac --release 25 -d /tmp/fresher-broken "$f.java" 2>&1 | grep -v '^Picked up JAVA_TOOL_OPTIONS' >> "$out"
echo >> "$out"
done
cat "$out"