What is indexof?
No Answer is Posted For this Question
Be the First to Post Answer
what is purpose of writting public static void main(Strind arg[]) in java..?
Explain purpose of sleep() method in java?
what is the JNDI?
What is an infinite loop in java? Explain with an example.
What are the advantages of unicode?
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 the difference between Access Modifier and Access specifier?
Name few java 8 annotations ?
what is anonymous class in java?
What is difference between static class and normal class?
Can we restart a dead thread in java?
What do you mean by compiler?