What is the nested interface?
No Answer is Posted For this Question
Be the First to Post Answer
What is static method with example?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
How can we run a java program without making any object?
What is a platform?
What is a dynamic array in java?
Explain the difference between an object-oriented programming language and object-based programming language?
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
Can a final variable be null?
How many return statement are allowed in a function?
What is literal example?
What is a qualifier in a sentence?
How can we make sure main() is the last thread to finish in java program?