Is string is a keyword in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between static method and instance method in Java?
0 Answers SwanSoft Technologies,
What is wrapper class html?
Does a function need a return?
can we create a instance for intwerface?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
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?
Can we overload run() method in java?
Can a function return a function?
How to create an immutable class?
What is the finalize method do?
What is the difference between interpreter and compiling ?
What are class types in java?