Which of the following can be referenced by a variable?
A. The instance variables of a class only
B. The methods of a class only
C. The instance variables and methods of a class
Answer Posted / puneet khanna
Why wud u ask this if botth can be accessed by the refence
variable that points to the object of that class;
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Can this keyword be used to refer static members?
What technique is carried out to find out if a particular string is empty?
What is the static keyword?
Why java does not support pointers?
What will happen to the exception object after exception handling?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
What is casting in java programming?
Is a case study a method or methodology?
What is return used for in java?
What is entry set in java?
How is abstraction implemented in java ?
What is logical variable?
How do you declare a string variable?
Differentiate between a constructor and a method? Can we mark constructors final?
What is the size of boolean variable?