Repository navigation
Fix incorrect answers, add difficulty levels and new topics - #3
Merged
Merged
Conversation
Corrections (about 60 answers), including: - "Can you extend an interface?" said No; interfaces can extend interfaces - protected access described as visible to non-subclasses outside the package - ClassCastException called checked and ClassNotFoundException unchecked - "Running" listed as a Java thread state; Thread.State has six states - Implicit/explicit casting mislabelled as down/up casting; wrong widening order - Deserialization constructor and static-field answers were wrong - try-with-resources: resources close before catch runs, not after - Exception handling pattern attributed to a non-existent GoF pattern - OutOfMemory answer copied from Confluence docs and used PermGen flags - "Will this code compile?" answered No for code that compiles - equals() example threw on null/other types; hashCode called unique - Outdated APIs: deprecated wrapper constructors, finalize(), javax Structure: - Every question tagged [Easy]/[Medium]/[Hard], ordered easy to hard - Blank line after every </summary> so markdown renders on GitHub - README rebuilt with level counts and a study path New: core Java essentials, advanced exceptions, collection complexity, threading pitfalls and executors, Java 8 advanced, generics erasure and wildcards, and DSA problems 21-33 (heaps, graphs, DP, sliding window). All new DSA solutions and stated example outputs compiled and checked on JDK 21. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Jgqi4T7d6q9GRmzBXKCTm
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Jgqi4T7d6q9GRmzBXKCTm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A full review of all Java answers: wrong answers fixed, every question tagged by difficulty and sorted easy → hard, and missing topics added.
369 questions · 198 Easy · 146 Medium · 25 Hard
Corrected answers (about 60), including
protectedwas described as visible to non-subclasses outside the package.equals()/hashCode()answers were wrong.Structure
[Easy]/[Medium]/[Hard]and ordered easy → hard. DSA files keep their numbered order.</summary>).New content
All new code and stated outputs were compiled and checked on JDK 21.
Generated by Claude Code