Java: Is "reference variable of a class" same as "an object of that class"?
In context to Java programming,
Is "reference variable of a class" same as "an object of that class"?
Also for a code like
class Sample
{
int a, b;
public static void main(String arg[])
{
int c;
// other statements
}
}
Among the variables a,b, c which are the class variables.
Is there a difference between variable a/b and variable c as far as their scope is concerned?
Is "reference variable of a class" same as "an object of that class"?
Also for a code like
class Sample
{
int a, b;
public static void main(String arg[])
{
int c;
// other statements
}
}
Among the variables a,b, c which are the class variables.
Is there a difference between variable a/b and variable c as far as their scope is concerned?
0