What is the private method modifier?
No Answer is Posted For this Question
Be the First to Post Answer
Which is bigger float or double?
what are the rules to use try catch finally?
What is meant by throwing an Exception?
Distinguish method overloading and overriding
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
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 are the advantages of encapsulation in java?
What is the purpose of using java.lang.class class?
Give some features of interface?
How do you sort arraylist in descending order?
what is language and it responsibilities
What is the difference between the >> and >>> operators?