Set - 4

Question 46 :

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.

Question 47 :

Name three Component subclasses that support painting.

Answer :

The Canvas, Frame, Panel, and Applet classes support painting.

Question 48 :

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.

Question 49 :

What is the immediate superclass of the Dialog class?

Answer :


Question 50 :

What is clipping?

Answer :

Clipping is the process of confining paint operations to a limited area or shape.