Videos
Been trying to learn about OOP in java but couldnt understand what an object is and what it does. I just know how to use it to call methods.
A Java class is not an object.
However, every Java class has an instance of the Class class describing it.
Those instances are objects.
Java classes are not objects, they're an abstraction.
However, each Java class has a corresponding instance of the java.lang.Class class that represents it. That representation is an object. But you shouldn't mistake the representation for the actual thing.
The relationship is somewhat similar to that between music and sheet music. Although the written notation represents music, it is not itself the music.
The difference rarely matters in practice though, so long as you know what you can and cannot do with java.lang.Class objects.