Z
ZOCOR
Hi
public class Apple
{
String colour;
String weight;
public void method1()
{}
public String toString()
{
String result = null;
return result = "something";
}
} //end
Question:
Should the declaration of result be at the instance level or local?
ZOCOR
public class Apple
{
String colour;
String weight;
public void method1()
{}
public String toString()
{
String result = null;
return result = "something";
}
} //end
Question:
Should the declaration of result be at the instance level or local?
ZOCOR