Link to home
Start Free TrialLog in
Avatar of Roxanne25
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!
ASKER CERTIFIED SOLUTION
Avatar of twobitadder
twobitadder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GrandSchtroumpf
GrandSchtroumpf

this looks like a question for the certification.
Avatar of Roxanne25

ASKER

Nope. :)  Was a homework question for a class.