Core java Interview Question and Answers By Vivek Part -6

Опубликовано: 05 Февраль 2026
на канале: ITSP
30
0

#JavaGarbageCollection
#JavaGarbageCollector
#JavaGCMethod
#JavaGarbageCollection
#JavaGarbageEligibility
#JavaFinalizeMethod
#JavaReferences
#JavaObjectReferences
#JavaGarbageCollectorThread
#JavaRuntimeClass
#JavaExternalProcess
#JavaRuntimeUses
#JavaNestedClass
#JavaNestedClassTypes
#JavaNestedClassUsage
#JavaNestedVsInnerClass
#JavaNestedInterface
#JavaLocalInnerClass
#JavaInterfaceInClass
#JavaNestedInterfaceStatic
#JavaStaticNestedInterface

100.What is Garbage Collection in Java?
101. Why Java provides Garbage Collector?
102.What is the purpose of gc() in Java?
103.How does Garbage Collection work in Java?
104.When does an object become eligible for Garbage Collection in Java?
105.Why do we use finalize() method in Java?
106.What are the different types of References in Java?
107.How can we reference an unreferenced object again?
108.What kind of process is the Garbage collector thread?
109.What is the purpose of the Runtime class?
110. How can we invoke an external process in Java?
111. What are the uses of Runtime class?
Inner Classes
112. What is a Nested class?
113. How many types of Nested classes are in Java?
114. Why do we use Nested Classes?
115. What is the difference between a Nested class and an Inner class in
Java?
116. What is a Nested interface?
117. How can we access the non-final local variable, inside a Local Inner
class?
118. Can an Interface be defined in a Class?
119. Do we have to explicitly mark a Nested Interface public static?
120.Why do we use Static Nested interface in Java?