5 years ago in Introduction To Java

What allows the programmer to destroy an object x?

[A] Only the garbage collection system can destroy an object.
[B] X.delete
[C] X.destroy
[D] none
Loading...
Next Question

Overall Stats

Attempted 312
Correct 119
Incorrect 65
Viewed 128

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 2 days ago

Shamsa hafeez from Lahore, Pakistan is saying Only the garbage collection system can destroy an object. is correct answer

Tsega Asresa Mengistu
Tsega Asresa Mengistu - 1 week ago

Tsega Asresa Mengistu from Dessie, Ethiopia is saying none is correct answer

Utkarsh Sharma
Utkarsh Sharma - 1 month ago

Utkarsh Sharma from Dehradun, India is saying Only the garbage collection system can destroy an object. is correct answer

Vaibhav Bisht
Vaibhav Bisht - 1 month ago

Vaibhav Bisht from Dehradun, India is saying X.destroy is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying Only the garbage collection system can destroy an object. is correct answer

Related Questions

Which one of the following will declare an array and initialize it with five numbers?

  • [A] Array a = new Array(5);
  • [B] int [] a = {23,22,21,20,19};
  • [C] int a [] = new int[5];
  • [D] int [5] array;

In which we clone the object and their constituent parts

  • [A] Shallow Cloning
  • [B] Deep cloning
  • [C] Both
  • [D] none

String object is

  • [A] mutable
  • [B] immutable