186. What are wrapped classes?
Answer: Wrapped classes are classes that allow primitive types to be accessed as
objects.
187. Does garbage collection guarantee that a program will not run out
of memory?
Answer: No, it doesn't. It is possible for programs to use up memory resources
faster than they are garbage collected. It is also possible for programs to create
objects that are not subject to garbage collection
188. What is the difference between preemptive scheduling and time slicing?
Answer: Under preemptive scheduling, the highest priority task executes until it
enters the waiting or dead states or a higher priority task comes into existence.
Under time slicing, a task executes for a predefined slice of time and then
reenters the pool of ready tasks. The scheduler then determines which task should
execute next, based on priority and other factors.
189. Name Component subclasses that support painting.
Answer: The Canvas, Frame, Panel, and Applet classes support painting.
190. What is a native method?
Answer: A native method is a method that is implemented in a language other than
Java.
Wednesday, May 7, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment