Hi,
I would like to know the difference between a static method and the same method defined as an instance method. I would like to know the difference in terms of performane and memory usage. Which one will be more efficient?
For example:
Method defined as static:
Class X
{
public static
String getX()
{
return "ABC";
}
}
Same Method defined as instance method
Class X
{
public String getX()
{
return "ABC";
}
}
Thanks