Answer Posted / Ashish Khetal
In Java, each variable is allocated a certain amount of memory depending on its data type. The exact location of the variable in memory is determined by the JVM (Java Virtual Machine). Primitive types like int and char are stored as they are in memory, while objects and arrays occupy more memory space.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between break and continue statements?
What is a classloader in java?
How to create a base64 decoder in java8?
What is an object in java and how is it created?
explain different ways of using thread? : Java thread
Realized?
What is parsing in java?
What is a constructor overloading in java?
Differentiate between static and non-static methods in java.
What do you mean by an interface in java?
What is the difference between equals() and == in java?
How to sort array in descending order in java?
Write a program to print count of empty strings in java 8?
What is java string pool?
Is minecraft 1.15 out?