Computer Certification

  1. Home
  2. Computing & Technology
  3. Computer Certification
SCMAD Practice Test
20 Free SCMAD Practice Questions

Answer 3

Correct answer: a & b

Choices A and B are the correct answers.

Both Runtime.gc() and System.gc() can be used in CLDC to persuade the Garbage Collector to reclaim unused memory. Hence, choices A and B are correct.

CLDC 1.1 provides support for WeakReference class. Suppose that the Garbage Collector determines at a certain point that an object is weakly reachable, it will atomically clear all the weak references to that object and all the weak references to any other weakly- reachable objects from which that object is reachable through a chain of strong and weak references. This actually enables Garbage Collection. Hence, choice C is incorrect.

Garbage Collector cannot be suspended or stopped manually. Whenever the memory is low or when the Garbage Collector has been invoked by System.gc() / Runtime.gc() (Remember both the methods are only recommendations. Garbage Collector can decide to ignore it), Garbage Collector would start and reclaim the unused objects. Hence, choice D is incorrect.

Next page > Question 4

Explore Computer Certification

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Computer Certification

  1. Home
  2. Computing & Technology
  3. Computer Certification

©2009 About.com, a part of The New York Times Company.

All rights reserved.