What part of memory - Stack or Heap - is cleaned in the garbage collection process?
Answer / nashiinformaticssolutions
On Heap memory, garbage collection is employed to release the memory used by objects with no references. Every object created in the Heap space has access to the entire application and may be referred to from anywhere.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we pass a primitive type by reference in java? How
1) There are 10 different threads in runnable state. Each having priority 1 to 10. How does the CPU schedules or executes these threads?
what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading?
What is final keyword in java? Give an example.
What is the method to declare member of a class static?
What is compareto () in java?
whats the purposr of using serialization?
Difference between keyword and identifier.
difference between byte stream class and character stream class?
what is prepare statement? what is calabedtarement?
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
what is mean by thread lock?