What are green threads in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is an array length?
What is a Null object?
How do you make an arraylist empty in java?
What is ternary operator? Give an example.
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
Is object a data type in java?
What is the use of ?this??
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects
List some important characteristics on jre
What is the size of an array?
What is map and hashmap? also tell the difference.
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?