in Education by
Which exception is thrown when java is out of memory? (a) MemoryFullException (b) MemoryOutOfBoundsException (c) OutOfMemoryError (d) MemoryError The question was asked by my college director while I was bunking the class. My question is taken from Heap and Garbage Collection topic in section Classes and Methods of Java Select the correct answer from above options Java questions and answers, Java questions pdf, Java question bank, Java questions and answers pdf, mcq on Java pdf, Java questions and solutions, Java mcq Test , Interview Java questions, Java Questions for Interview, Java MCQ (Multiple Choice Questions),Core Java Questions, Core Java MCQ,core java interview questions for experiencedcore java interview questions for 3 years experience,java programming questions,core java interview questions for freshers,java interview questions and answers for freshers, java programming questions and answers pdf, java interview questions for beginners

1 Answer

0 votes
by
 
Best answer
Right option is (c) OutOfMemoryError To explain: The Xms flag has no default value, and Xmx typically has a default value of 256MB. A common use for these flags is when you encounter a java.lang.OutOfMemoryError.

Related questions

0 votes
    If member does not implement serialization, which exception would be thrown? (a) RuntimeException (b) ... and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which operator is used by Java run time implementations to free the memory of an object when it is no ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these operators is used to allocate memory to array variable in Java? (a) malloc (b) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of the following is not a segment of memory in java? (a) Stack Segment (b) Heap Segment (c ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of the following is not a memory classification in java? (a) Young (b) Old (c) Permanent (d ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these exceptions is thrown by methods of System class? (a) IOException (b) SystemException (c) ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these exceptions will be thrown if we declare an array with negative size? (a) IllegalArrayException ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these exceptions will be thrown if we use null reference for an arithmetic operation? (a) ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of the following exceptions is thrown by every method of Runtime class? (a) IOException (b) ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these exceptions is thrown by URL class's constructors? (a) URLNotFound (b) URLSourceNotFound (c) ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these Exceptions is thrown by remote method? (a) RemoteException (b) InputOutputException (c) ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these operators is used to allocate memory for an object? (a) malloc (b) alloc (c) new ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the following has the highest memory requirement? (a) Heap (b) Stack (c) JVM (d) Class ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the below is not a memory leak solution? (a) Code changes (b) JVM parameter tuning (c) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these methods returns the total number of bytes of memory available to the program? (a) getMemory( ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
...