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


Please Help Members By Posting Answers For Below Questions

What does java stand for?

781


What is math floor in java?

675


What do bitwise operators do?

738


Explain what are final variable in java?

788


What Is Composition?

795


What is tcp ip in java?

806


Is java a super set of javascript?

826


What comes to mind when someone mentions a shallow copy in java?

887


What is the private method modifier?

808


What is the disadvantage of java?

715


Why string is immutable or final in java

841


What is an inner class in java?

716


What is the exception hierarchy in java?

720


why are there separate wait and sleep methods? : Java thread

779


What is an empty string in css?

768