---
title: "#java-class articles | Hashnode"
description: "Explore 3 articles tagged #java-class on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/java-class"
---

Tag

# #java-class

3 posts · 0 followers

[Shritej Chavan](https://hashnode.com/@shritej-chavan-05) · [Oct 14, 2025](https://hashnode.com/posts/why-the-filename-must-match-the-public-class-name/68ee67a0cf15a7a78d6f8eb3)

### [Why the filename must match the public class name](https://javawithshritej.hashnode.dev/why-the-filename-must-match-the-public-class-name?utm_source=hashnode&utm_medium=feed)

The Java compiler and JVM need a clear way to find and load the correct class.When a class is declared as public, it means it can be used by any other class or program.So Java expects that: The public class name and the file name are the same. This...

2 min read · [javawithshritej.hashnode.dev](https://javawithshritej.hashnode.dev/why-the-filename-must-match-the-public-class-name?utm_source=hashnode&utm_medium=feed)

[Akash Das](https://hashnode.com/@akashdas7781) · [Sep 20, 2024](https://hashnode.com/posts/mastering-java-classes-and-objects-a-comprehensive-beginners-guide/66ed603ae45c7fc0eaa31b98)

### [Mastering Java Classes and Objects: A Comprehensive Beginner's Guide](https://akashdas7781.hashnode.dev/mastering-java-classes-and-objects-a-comprehensive-beginners-guide?utm_source=hashnode&utm_medium=feed)

Learn the fundamentals of classes and objects, and master the principles of creating flexible, modular, and reusable code. Perfect for new developers lookin

5 min read · [akashdas7781.hashnode.dev](https://akashdas7781.hashnode.dev/mastering-java-classes-and-objects-a-comprehensive-beginners-guide?utm_source=hashnode&utm_medium=feed)

[Chetan Datta](https://hashnode.com/@chetan77) · [May 5, 2024](https://hashnode.com/posts/08-java-classes-part-ii-generic-class/663787af407d17e298b986c0)

### [08 Java - Classes (Part II - Generic Class)](https://chetan77.hashnode.dev/08-java-classes-part-ii-generic-class?utm_source=hashnode&utm_medium=feed)

Introduction to Generic Classes If we have an object with a field of type Object, then this object can hold any type of class because Object is the parent class of all classes. Therefore, when accessing the field of this class, we should be careful b...

7 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/08-java-classes-part-ii-generic-class?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/08-java-classes-part-ii-generic-class/663787af407d17e298b986c0)
