Different types of memory used by JVM ?
Questions
Search
List By Company
List By Topic
Legacy
Tests
Repository
DashBoard
Java
Java 8
Java 7
Java Abbreviations
OCJP / SCJP
Class List
New in Java 8
Java Exceptions
Spring Exceptions
Java Enums
Java 8 Lambda
Java 8 java.time
Big Data
Best Of Java
Discussion
Search
Subscribe
Search Interview Questions
More than 3000 questions in repository.
There are more than 900 unanswered questions.
Click here
and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company
Label / Company / Text
Search
Submit Question
Interview Questions and Answers
Q1.
Different types of memory used by JVM ?
Core Java
Ans. Class , Heap , Stack , Register , Native Method Stack.
Help us improve. Please let us know the company, where you were asked this question
:
Like
Discuss
Correct / Improve
 java   jvm   memory management   memory   advanced   architecture   technical architect
Asked in 1 Companies
intermediate
 
frequent
Correction
Duplicate of Another Question
Company where this question was Asked
Suggestion
Try 5 Question(s) Test
In this code
public class BuggyBread1{
private static String staticVariable = "static Variable";
private String instanceVariable = "instance Variable";
public static void main (String args[]) {
String localVariable = "local Variable";
}
}
Where will the value 'static Variable' be stored ?
Stack Memory Segment
Heap Memory Segment
Runtime Constant Pool within Heap Segment
Code Segment
In this code
public class BuggyBread1{
private static String staticVariable = "static Variable";
private String instanceVariable = "instance Variable";
public static void main (String args[]) {
String localVariable = "local Variable";
}
}
Where will the value 'static Variable' be stored ?
Stack Memory Segment
Heap Memory Segment
Runtime Constant Pool within Heap Segment
Code Segment
In this code
public class BuggyBread1{
private static String staticVariable = "static Variable";
private String instanceVariable = "instance Variable";
public static void main (String args[]) {
String localVariable = new String("local Variable");
}
}
Where will the value 'local Variable' be stored ?
Stack Memory Segment
Heap Memory Segment
Runtime Constant Pool within Heap Segment
Code Segment
In this code
public class BuggyBread1{
private static String staticVariable = new String("static Variable");
private String instanceVariable = "instance Variable";
public static void main (String args[]) {
String localVariable = "local Variable";
}
}
Where will the value 'static Variable' be stored ?
Stack Memory Segment
Heap Memory Segment
Runtime Constant Pool within Heap Segment
Code Segment
Which of following memory segment is cleaned by Garbage Collection Mechanism ?
Stack
Heap
Code
Cache
Related Questions
What is a Lambda Expression ? What's its use ?
What is Lazy Initialization in Hibernate ?
If you are given a choice to use either ArrayList and LinkedList, Which one would you use and Why ?
Explain Flow of Spring MVC ?
What are the ways to avoid LazyInitializationException ?
Difference between first level and second level cache in hibernate ?
What is session tracking and how do you track a user session in servlets?
How does volatile affect code optimization by compiler?
Can you provide some implementation of a Dictionary having large number of words ?
What are the benefits of using Spring Framework ?
Help us and Others Improve. Please let us know the questions asked in any of your previous interview.
Any input from you will be highly appreciated and It will unlock the application for 10 more requests.
Company Name:
Questions Asked: