اكثر اسئلة واجوبة المقابلات طلبا والاختبارات عبر الإنترنت
منصة تعليمية للتحضير للمقابلات والاختبارات عبر الإنترنت والدروس والتدريب المباشر

طوّر مهاراتك من خلال مسارات تعلم مركزة واختبارات تجريبية ومحتوى جاهز للمقابلات.

يجمع WithoutBook أسئلة المقابلات حسب الموضوع والاختبارات العملية عبر الإنترنت والدروس وأدلة المقارنة في مساحة تعلم متجاوبة واحدة.

التحضير للمقابلة

Java Garbage Collection اسئلة واجوبة المقابلات

سؤال 1. What is Garbage Collection in Java?

Garbage Collection is the automatic process of reclaiming the runtime unused memory by destroying the objects that are no longer reachable or referenced by the program.

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 2. Explain the purpose of the finalize() method.

The finalize() method is called by the garbage collector before reclaiming the memory occupied by an object. It can be overridden to perform cleanup operations before an object is garbage collected.

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 3. What is the role of the JVM (Java Virtual Machine) in garbage collection?

The JVM is responsible for managing the memory, including garbage collection. It runs the garbage collector to identify and reclaim unused memory.

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 4. Name the different types of garbage collectors in Java.

The types of garbage collectors in Java include Serial Garbage Collector, Parallel Garbage Collector, CMS (Concurrent Mark-Sweep) Garbage Collector, and G1 (Garbage-First) Garbage Collector.

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 5. What is the purpose of the Young Generation in the Java heap?

The Young Generation is the part of the heap where new objects are created. It is designed for short-lived objects, and garbage collection occurs more frequently in this generation.

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

الاكثر فائدة حسب تقييم المستخدمين:

حقوق النشر © 2026، WithoutBook.