Skip to content

Fix incorrect answers, add difficulty levels and new topics - #3

Merged
Murli0399 merged 2 commits into
mainfrom
review-fixes-and-levels
Nov 11, 2026
Merged

Murli0399 merged 2 commits into
mainfrom
review-fixes-and-levels

Conversation

@Murli0399

Copy link
Copy Markdown
Owner

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

  • "Can you extend an interface?" said No. Interfaces can extend interfaces.
  • protected was described as visible to non-subclasses outside the package.
  • ClassCastException was called checked and ClassNotFoundException unchecked (backwards).
  • "Running" was listed as a Java thread state, and implicit/explicit casting was mislabelled.
  • The deserialization, try-with-resources ordering and equals()/hashCode() answers were wrong.
  • One answer was copied from Confluence docs and used PermGen flags; outdated APIs were updated.

Structure

  • Every question is tagged [Easy]/[Medium]/[Hard] and ordered easy → hard. DSA files keep their numbered order.
  • Each file has a title, and markdown now renders correctly on GitHub (a blank line after each </summary>).
  • The README was rebuilt with level counts, a study path and a full index.

New content

  • Core Java essentials, advanced exceptions, choosing collections and their complexity.
  • Threading pitfalls and executors, Java 8 advanced topics, and generics (erasure, PECS).
  • DSA problems 21–33.

All new code and stated outputs were compiled and checked on JDK 21.


Generated by Claude Code

Murli0399 and others added 2 commits November 11, 2026 07:06
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

@Murli0399 Murli0399 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct

@Murli0399
Murli0399 merged commit 4463954 into main Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant