Can a class have multiple subclasses?
No Answer is Posted For this Question
Be the First to Post Answer
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 override the main method?
How do you use find and replace?
Is arraylist ordered?
Can we sort list in java?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
What is the difference between Access Modifier and Access specifier?
Can constructor be static or final?
What is the use of anonymous inner classes ?
Is 64bit faster than 32 bit?
Can list be final in java?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?