Your Ad Here

Friday, February 27, 2009

What is clipping

Question :What is clipping?
Answer :Clipping is the process of confining paint operations to a limited area or shape.

What is the immediate superclass of the Dialog class

Question :What is the immediate superclass of the Dialog class?
Answer :Window.

What value does readLine() return when it has reached the end of a file

Question :What value does readLine() return when it has reached the end of a file?
Answer :The readLine() method returns null when it has reached the end of a file.

Name three Component subclasses that support painting

Question :Name three Component subclasses that support painting?
Answer :The Canvas, Frame, Panel, and Applet classes support painting.

What is the difference between preemptive scheduling and time slicing

Question :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.

What is the immediate superclass of the Applet class

Question :What is the immediate superclass of the Applet class?
Answer :Panel

Can an object's finalize() method be invoked while it is reachable

Question :Can an object's finalize() method be invoked while it is reachable?
Answer :An object's finalize() method cannot be invoked by the garbage collector while the object is still reachable. However, an object's finalize() method may be invoked by other objects.