import java.util.*;
class Over{
public static void main(
String j[])
{
Vector v=new Vector();
Vector v1=new Vector();
System.out.println("value of v"+v);
System.out.println("value of v1"+v1);
Over o = new Over();
o.set(v);
System.out.println("value of v"+v);
System.out.println("value of v1"+v1);
}
public void set(Vector v)
{
v.addElement("100");
v1=v;
System.out.println("value of v"+v);
//// System.out.println("value of v1"+v1);
}
}
Thanks you very much Deeksha ,by mistake i have given the code wrongly.what i want to know is given correctly ,modifycation i made to your code is nothing but given reference of one variable to another.please explain what happens if we do like this
[This message has been edited by sailajauppalapati (edited July 11, 2000).]
[This message has been edited by sailajauppalapati (edited July 11, 2000).]