Can we force the garbage collection to run?


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

Post New Answer

More Core Java Interview Questions

what is difference between set and list in collection?

3 Answers   Satyam,


What is java Applet?

0 Answers   TCS,


What is serialVersionUID and what is its need?

1 Answers   KPIT,


What is method overloading in JAVA? Why is it not present in C ?

0 Answers   Akamai Technologies,


How can you take string into InputStream?

3 Answers  






diffrence b\w println() and printf()

8 Answers   NIIT,


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

0 Answers  


hi to all,i have a question on static block. i saved below as test.java class test extends a { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p as static test static but if i change base class as test class then class test { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a extends test { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p test static explain me why "a static" wasn't print in second code when it is in derived class

1 Answers  


Difference between JVM and JRE?

3 Answers   Amdocs,


When would you use a static class?

0 Answers  


What is comparable and comparator interface? List their differences

0 Answers  


What is Locale class?

1 Answers   MySoft,


Categories