Roxanne25
asked on
Could Someone Help Me With This Question?
class SampleClass {
int a;
int b;
AnotherClass q;
public void sampleMethod()
{
int c = 1;
a = c * 7;
b = 32 + c * a;
}
}
which of the following statements is true?
'c' is a reference.
'a' and 'b' are local variables.
'a' and 'b' are declared as a primitive data type.
'q' is declared as a primitive data type.
Having a bit of trouble with this one.... thanks in advance!
int a;
int b;
AnotherClass q;
public void sampleMethod()
{
int c = 1;
a = c * 7;
b = 32 + c * a;
}
}
which of the following statements is true?
'c' is a reference.
'a' and 'b' are local variables.
'a' and 'b' are declared as a primitive data type.
'q' is declared as a primitive data type.
Having a bit of trouble with this one.... thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
this looks like a question for the certification.
ASKER
Nope. :) Was a homework question for a class.