Dear friend,
I am asking you to some basic
JAVA architecture qustion
The question is ,
I am designing an
applet ,where i want to display an message in applet say �hello� ,so i use Graphics class to display the
string ,the code is
Line1:Graphics g=getGraphics();
Line2:g.drawString(�hello�,10,10);
Or
Public void paint(Graphics g)
{
g.drawString(�hello�,10,10);
}
my question is-�how it is possible without creating instance of Graphics class to call a method drawString() ,people say that the reference to the Graphics class is produced if it�s true please explain me how the refrence is passed and how it is working�
rex