Sunday, 24 April 2011

Defining Classes

Defining  Classes

The  basic  structure   of   defining   a   class   is   as   follows :

scope   class   className [extends  class]
{
//class   implementation  statements 
}

When   declaring   the  scope  of  the  class  ,  we  have  several   options  to   control  how  other   classes   can   access  this  class:

public  ---   the  class   can  be  used  by  code   outside   of   the   file .  only  one  class   in  a  file   may   have   this  scope  .  The   file  must   be  named   with   the  class   name  followed   by   the   four-letter   .java    extension.

private  --- the   class  can  only  be   used  by   itself   and   must   be   subclassed  .

The Context Of A Process

The  Context  Of   A   Process

The   context   of   a   process   consists   of  the  contents   of   its (user)  address  space   and   the  contents   of  hardware   registers  and  kernel   data  structures   that   relate   to   the  process . Formally  the   context   of   a  process   is   the   union  of   its   user - level   context , register  context  and  system  level  context  .  The   user - level  context  consists   of   the   process   text  ,  data ,  user   stack ,  and  shared   memory  that   occupy  the   virtual   address   space   of   the   process  .  Parts   of   the   virtual   address