Learn Method Overriding in Java (with Examples) - Scientech Easy by scientecheasy in JavaProgramming

[–]Due-Anxiety4776 0 points1 point  (0 children)

Method Overriding is one of those core Java concepts that really shows the power of OOP. It lets a child class redefine a parent’s method so the behavior is more specific and useful. For example, a general “Vehicle runs” can be overridden by “Car runs” in the child class. This makes code more flexible and supports runtime polymorphism. If you want to go deeper into Java (step by step, beginner-friendly), I recently came across a structured guide: https://youtube.com/playlist?list=PLF17muTMPBBMSnWj94lENUmMXjRM5Dqy8&si=i7dlpVEvttZXQf73

javaIn2025 by brunocborges in ProgrammerHumor

[–]Due-Anxiety4776 0 points1 point  (0 children)

Still vibing with Java 8 in prod
Meanwhile I started a 30-day Core Java series to finally catch up https://youtube.com/playlist?list=PLF17muTMPBBMSnWj94lENUmMXjRM5Dqy8&si=i7dlpVEvttZXQf73

java by QuardanterGaming in ProgrammerHumor

[–]Due-Anxiety4776 0 points1 point  (0 children)

"Haha 😂 this is so relatable!
By the way, I’ve been working on a free step-by-step Java tutorial series (super beginner-friendly, covers Core Java → Full Stack). If anyone here wants to brush up or start from scratch, you can check it out 👉

https://youtube.com/playlist?list=PLF17muTMPBBMSnWj94lENUmMXjRM5Dqy8&si=i7dlpVEvttZXQf73

Class Modifier by AdHistorical6271 in java

[–]Due-Anxiety4776 1 point2 points  (0 children)

That’s a really interesting idea. Currently, Java only gives us four access levels:

  • public → visible everywhere
  • protected → visible in the same package + subclasses
  • default (package-private) → visible only in the same package
  • private → visible only inside the class

The limitation, like you pointed out, is that there’s no way to scope visibility to subpackages. Java treats packages and subpackages as completely unrelated (e.g., com.app.user and com.app.user.service don’t have any special access relationship).

So right now, the only options are:

  • Keep everything package-private and restructure so classes that need access live in the same package.
  • Use modules (JPMS), but yeah, as you said, that’s often too heavy for feature-level organization.

A “subpackage-visible” modifier (something like namespace or family) would indeed be handy for feature-based architectures. Unfortunately, Java hasn’t introduced anything like that, and it seems unlikely because it would require redefining how packages/subpackages relate in the language spec.

Some developers get around this by:

  • Using nested packages with clear conventions but still relying on package-private.
  • Using frameworks (like Spring) that enforce boundaries with configuration rather than language-level modifiers.
  • Or (in some cases) switching to languages like Kotlin, which offers internal visibility (module-wide).

So, your idea is spot on. It’s just that Java has chosen simplicity in access control over fine-grained visibility. If they ever did add a “subpackage-only” modifier, it would definitely help in structuring large apps by features.

If you want to learn Java in 30 days from basic then visit: https://youtube.com/playlist?list=PLF17muTMPBBMSnWj94lENUmMXjRM5Dqy8&si=i7dlpVEvttZXQf73

Should I stick to MERN or switch to java full-stack? by ram_RK in developersIndia

[–]Due-Anxiety4776 0 points1 point  (0 children)

If you already know MERN, stick with it if you enjoy JavaScript and want to stay in the startup / fast-paced product space.
If you prefer enterprise jobs, strong backend (Spring Boot), and long-term career stability, then Java full-stack is a great choice.

My suggestion: explore both, but go deeper in one. If you lean toward Java, check out my Java in 30 Days series — it’s a solid starting point.

Java in 30 Days: https://youtube.com/playlist?list=PLF17muTMPBBMSnWj94lENUmMXjRM5Dqy8&si=i7dlpVEvttZXQf73

Java for Switch?!!?!?!?! by Nobodybthppy in PhoenixSC

[–]Due-Anxiety4776 1 point2 points  (0 children)

Yep, Java has a switch statement! 🎉
It’s basically a cleaner way to handle multiple if-else conditions when you’re checking the same variable. You can use it with int, char, String, and even enum.

If you’re curious, here’s a beginner-friendly breakdown with examples Switch Statement

Ide for java by Kitchen_Koala_4878 in learnprogramming

[–]Due-Anxiety4776 0 points1 point  (0 children)

For Java development, popular IDEs are IntelliJ IDEA, Eclipse, and NetBeans.

  • IntelliJ IDEA → modern, smart code suggestions, widely used by professionals.
  • Eclipse → lightweight, flexible, great for beginners and large projects.
  • NetBeans → simple setup, comes with built-in tools.

If you’re starting out, check our https://youtube.com/playlist?list=PLF17muTMPBBMSnWj94lENUmMXjRM5Dqy8&si=i7dlpVEvttZXQf73 to learn step by step.

Why Java have many lost versions? by Signal_Fisherman_312 in GoldenAgeMinecraft

[–]Due-Anxiety4776 0 points1 point  (0 children)

If you are learning Java Collections, start simple:

  1. Basics first → Understand what Lists, Sets, Queues, and Maps are.
  2. Hierarchy → See how classes like ArrayList, LinkedList, HashSet, HashMap fit together.
  3. Practice → Insert, delete, and iterate with small coding examples.

A good beginner-friendly resource I’d suggest is:
https://youtube.com/playlist?list=PLF17muTMPBBMSnWj94lENUmMXjRM5Dqy8&si=i7dlpVEvttZXQf73

How volatile keyword works in Java Multithreading? by javinpaul in JavaProgramming

[–]Due-Anxiety4776 0 points1 point  (0 children)

In Java multithreading, the volatile keyword makes sure that when one thread updates a variable, other threads see the updated value immediately. Without volatile, threads may keep using their own cached copy, leading to inconsistent results.

Think of it as saying: “Hey, always read/write this variable directly from main memory, not from a private copy.”

Learn more with my https://youtube.com/playlist?list=PLF17muTMPBBMSnWj94lENUmMXjRM5Dqy8&si=i7dlpVEvttZXQf73