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.
The actions in a java class are called methods.
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.
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
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.
We can't call a class. We always call a method in java.
What i know is java we will use compiler when it want to get class file(file with .class extension) from java file(file with .java extension).