Understanding Java's main(), static, Classes and Objects

Опубликовано: 01 Июль 2026
на канале: Learning Everything
0

In this learning log, I'm trying to build a mental model of why Java is designed the way it is instead of just memorizing syntax.

Rather than treating public static void main(String[] args) as something to memorize, I try to answer questions like:

• Why does Java require a main() method?
• Why must everything be inside a class?
• Why is main() static?
• What's the difference between a class and an object?
• Why do objects have their own fields while static members are shared?

I also build a simple Coordinate example to understand how classes act as templates, how objects are created, and how this refers to the current object.

This isn't a polished tutorial—it's a recording of me thinking through the concepts as I study Java. Hopefully seeing the reasoning process helps other beginners who are asking the same questions.