Tell us something about set interface.
No Answer is Posted For this Question
Be the First to Post Answer
what is the volatile modifier for? : Java thread
Which Math method is used to calculate the absolute value of a number?
Can you access the private method from outside the class?
How can we pass argument to a function by reference instead of pass by value?
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?
Explain the difference between treeset and treemap in java?
Can an interface extands a class?
What is parsing in grammar?
How do you create a first line indent?
How to create a thread in java?
How do you use wildcards?
Is map ordered in java?