Challenge 2: A Mismatched Filename and Class Name — Possible Solution ==================================================================== Wrong.java: public class Right { public static void main(String[] args) { System.out.println("This won't compile."); } } $ javac Wrong.java Representative compile error: Wrong.java:1: error: class Right is public, should be declared in a file named Right.java public class Right { ^ 1 error WHY THIS WORKS AS AN ANSWER ------------------------------ javac itself rejects the file before ever reaching main's own body -- the error names the exact mismatch (a public class named Right sitting in a file named Wrong.java) and states plainly what filename would fix it, confirming the chapter's own claim that this rule is enforced by the compiler directly, not a style convention a team could choose to ignore.