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 are constructors in java?
What is a java lambda expression?
What is the difference between class forname and new?
Is empty list java?
What is the use of string and stringbuffer?
What about main thread in java?
Is null in java?
What is meant by distributed application? Why are we using that in our application?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
What is the diffrence between inner class and nested class?
What is return type in java?
How do you reverse a string in java without using string buffer?
Can string be considered as a keyword?
What is the use of static methods?
What is return data type?