Answer Posted / anjum rehbar khan
Yes we can send arequest to garbage collection by writing a
simple line of code:
System.gc();
OR
Runtime.gc();
But it is simply a request not a order to JVM
because Garbage collection is JVM dependent
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is the final class modifier?
Why is java logo a cup of coffee?
What is parsing in java?
Explain about join() method?
How can we make sure main() is the last thread to finish in java program?
When we serialize an object does the serialization mechanism saves its references too?
Can you start a thread twice in Java?
What is difference between identifier and variable?
How can you write a loop indefinitely in java programming?
What is the difference between java applets and applications?
What is the role of the java.rmi.naming class?
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green White will have 1 Weight. Red and Green carry no weights. Shortest path is the path with less weight when you add up the weights in the path.
How we can generate random numbers in java?
What is difference between filereader and bufferedreader?
How to provide security in java