Yes, executing a Java class will require memory just like any other program.
Object is like a variable of the class type which references the memory required by the attributes of the class.
about the garbage collector it is in java and it is mainly responsible for dynamic memory manegement
In Java we need not allocate memory manually. The JVM would take care of allocating as much memory that your objects would require automatically.
object is an instance of a class. it's used to allocate memory dynamically at run time to access class members.
Java source files have the .java extension, compiled Java class files have the .class extension.
Memory leaks do not occur in Java as the garbage collector clears the memory which has no references.
I don't see why it couldn't be. Unless the Java class uses techniques or methods which are available to Java but not C++, then there is no reason that a C++ class couldn't be based on a Java class.
Java does not have a sizeOf() operator and hence there is no way we can actually determine the size of a java class object. However we can analyze the overall heap space utilization to try to get an approximate indication of how much memory is used by an object but it is not accurate.
The actions in a java class are called methods.
without class non of the folder can run so the java program should start in class we can use the class without object in java
In Java, you cannot directly access the memory address of an object, as Java abstracts memory management away from the programmer. However, you can use the System.identityHashCode(Object obj) method to obtain a hash code that represents the object's identity, which is often based on its memory address. Alternatively, you can use the Object class's toString() method, which typically returns a string that includes the class name and the hash code, giving a rough indication of the object's identity. Remember that these methods do not provide an actual memory address but rather a representation of the object's identity.
Java is robust because it is highly supported language, meaning that unlike C you cannot crash your computer with a bad program. Also, another factor in its robustness is its portability across many Operating systems, with is supported by the Java Virtual Machine.