true
Login to rate this answer.
supriya ahire
Answered On : Mar 23rd, 2006
True.
Login to rate this answer.
How can class-var be a variable of the class type. It is an object or an instance of the classtype.
A variable is an attribute of the instance class-var..class-var by itself cannot be a variable.
My answer is false.
Login to rate this answer.
Velmurugan.S
Answered On : Apr 12th, 2007
class-var is instance or reference.
Its not a variable
Login to rate this answer.
class-var can be an instance and even if taken as a variable it can be either of the class classname or a supertype of it.
My ans is FALSE
Login to rate this answer.
Let us take an example of a data type int.
eg: int i;
Now i is the variable of the data type int and int can store numeric data.
let us see this now.
class A{
int i;
}
public class AA{
public static void main(String args[])
A objA = new A();
}
What is happening here that we are creating a new variable objA which can handle the data and methods of A.
So, it is true to say that class-var is a variable of the class type being created.
Login to rate this answer.
false
Login to rate this answer.
no its not create a object
Login to rate this answer.
In this Question in the given example class-var is nothing but an object of class classname
Login to rate this answer.