Tuesday, November 12, 2013

Pointer in java:-


Questen is that .in java there is pointer?
many ways and many peoples are says that in java there is not pointer but i m saying that there is a pointer :-because of object.
ex:-


Libraryes.....................
{

class abc
{
int a,b,c;
c=a*b;
System.out.println(c"there is result");
}
public static void main(String s[])
{
abc a=new abc(10,20);
/*there is working of pointer class abc there is creating an object of a where value of object passed now we can use a any where........*/
}
}

No comments:

Post a Comment