answersLogoWhite

0

In java a class will take memory?

User Avatar

Anonymous

15y ago
Updated: 8/17/2019

Yes, executing a Java class will require memory just like any other program.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What are objects in java?

Object is like a variable of the class type which references the memory required by the attributes of the class.


How garbage collector works on anonymous class in java?

about the garbage collector it is in java and it is mainly responsible for dynamic memory manegement


How you allocate the memory in java?

In Java we need not allocate memory manually. The JVM would take care of allocating as much memory that your objects would require automatically.


What is an object in Java?

object is an instance of a class. it's used to allocate memory dynamically at run time to access class members.


Extension file for Java?

Java source files have the .java extension, compiled Java class files have the .class extension.


What is memory leak problemin java?

Memory leaks do not occur in Java as the garbage collector clears the memory which has no references.


Why can't a c plus plus class be derived from a Java class?

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.


How do you find the size of a class object?

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?

The actions in a java class are called methods.


Why you start java program by 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


How do you get address of an 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.


How is java reliable?

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.