In this example class-var = new classname( ); class-var is a variable of the class type being created

A) True
B) False

Showing Answers 1 - 24 of 24 Answers

supriya ahire

  • Mar 23rd, 2006
 

 True.

  

  Was this answer useful?  Yes

pdurbha

  • Apr 30th, 2006
 

 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.

  Was this answer useful?  Yes

Velmurugan.S

  • Apr 12th, 2007
 

class-var is instance or reference.
Its not a variable

  Was this answer useful?  Yes

sukace

  • Nov 20th, 2007
 

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

  Was this answer useful?  Yes

nkamuni

  • Dec 19th, 2007
 

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.

  Was this answer useful?  Yes

mala gopathi

  • Jan 6th, 2022
 

true

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions