Can a class have multiple subclasses?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

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?

6 Answers  


Can we override the main method?

4 Answers  


How do you use find and replace?

0 Answers  


Is arraylist ordered?

0 Answers  


Can we sort list in java?

0 Answers  






Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

0 Answers   Amazon,


What is the difference between Access Modifier and Access specifier?

1 Answers  


Can constructor be static or final?

0 Answers  


What is the use of anonymous inner classes ?

12 Answers   DELL, HCL,


Is 64bit faster than 32 bit?

0 Answers  


Can list be final in java?

0 Answers  


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

0 Answers  


Categories