Which of the following is the correct syntax for suggesting that the JVM perform garbage collection?
Correct Answer: System.gc();
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Java MCQ Questions
Which statements, when inserted at the indicated position in the following code, will cause a runtime exception when attempting to run the program? class A {} class B extends A {} class C extends A {} public class X { public static void main(String args[]) { A x = new A(); B y = new B(); C z = new C(); // insert statement here } }
Can ServerSocket be used with UDP?
You want to loop through an array and stop when you come to the last element. Which give information about the size of array, if its name is arMark?
Are the following two statements equivalent? A: Thread.yield (); B: Thread.sleep (0);
Which is wrapper classes?
The character class ____ from java.lang.object.
Static methods can only operate on ________ fields.
You use the keyword ________ to reference a method in the superclass from a subclass.
You compare two strings s1 and s2 using ________.
You can use the ________ method to replace an item at a specific location in an arraylist.