Hi Frnds,
Sorry For The Spam .
i have a class name"Super"
program:
package turn;
public class Super {
public static String platformFlag=null;
public void parse()
{
platformFlag="Sekhar";
}
public static void main(String args[])
{
Super ob=new Super();
ob.parse();
}
}
-------------------------------------------------------------------------------
Now i have another class in the same package
package turn;
public class Model {
public void result(Super dupObj){
:'( System.out.println("Value of platformFlag" +dupObj.platformFlag);
}
public static void main(){
Model my=new Model();
Super sObject = new Super();
my.result(sObject);
}
}
---------------------------------------------------------------------------------
but when iam printing the value of platformFlag from the class Model it is printing null..:'( .?
:) could anyone of here tell me wat is the reason .
and Tell me the rway how to print value as sekhar