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
What is the right data type to represent a price in java?
What is derived datatype?
Difference between association, composition and aggregation?
What is string in java? String is a data type?
Are primitives objects?
What is a default method?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What is the difference between a checked and an unchecked exception?
How to sort numbers in java without array?
Can you run java program without main method?
Why is java architectural neutral?
What is class and its types?
How transient variable is different from volatile variable?
What happens when a thrown exception is not handled?
When is the finally clause of a try-catch-finally statement executed?