garbate collector(GC)?
Answers were Sorted based on User's Feedback
Answer / prabir kumar
1) it is a automatic memory management utility run by JVM.
2) the JVM cleaning the objects from the memory which are
no longer being referenced.
3) the object that is not instantiate or containl null is
also applicable for garbage collection.
3) explicitly running garbage collector is very expensive.
4) to run the garbage collect call the static method of
System class e.g. System.gc();
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / aditya mohata
it's an built it procedure in java which takes place as we
are finished wid our programs,so as to nullify the already
existing objects in the file.it's as an desturctor in c++.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / reddy
JVM Automatically reclaims the memory used by an object.When
no variable is referred to that object.
| Is This Answer Correct ? | 1 Yes | 0 No |
without using arthematic operation ,how can you write the logic for adding/substraction/multiplication?
7 Answers Tanla Solutions, Wipro,
What is operator overloading. Is it is supported in java?
Why can we not override static method?
What do you mean by global variable?
what is the difference between Java Command Line and C command Line?
What is continuity of a function?
What is byte [] in java?
What is the use of using enum to declare a constant?
Why is multithreading important?
Is there any way to find whether software installed in the system is registered by just providing the .exe file? I have tried the following code but its just displaying the directory structure in the registry. Here the code : package com.msi.intaller; import java.util.Iterator; import ca.beq.util.win32.registry.RegistryKey; import ca.beq.util.win32.registry.RootKey; public class RegistryFinder { public static void main(String... args) throws Exception { RegistryKey.initialize(RegistryFinder.class.getResource("jRe gistryKey.dll").getFile()); RegistryKey key = new RegistryKey(RootKey.HKLM, "Software\\ODBC"); for (Iterator<RegistryKey> subkeys = key.subkeys(); subkeys.hasNext();) { RegistryKey subkey = subkeys.next(); System.out.println(subkey.getName()); // You need to check here if there's anything which matches "Mozilla FireFox". } } }
how to compile jsp?
How many bits are allocated to represent character of character sets - Unicode, ASCII, UTF-16, UTF-8?