Can inner class final?
No Answer is Posted For this Question
Be the First to Post Answer
What is immutable in java?
When will we prefer to use set and list in java and why?
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?
What is linked hashmap and its features?
what is webservices
5 Answers Consultancy, Mind Tree,
Can we have two methods in a class with the same name?
Write a method that will remove given character from the string?
What is a file pointer?
What is string data type?
Is string a datatype?
What are the Static and Dynamic Variables? Differentiate them.
What is this () in java?