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

Explain the differences between static and dynamic variables?

594


What are basic data types?

571


What is constructor chaining and how is it achieved in java?

581


What is the maximum size of array in java?

530


What is the inheritance?

564






how to one war file class to another war file class?

1562


What does file separator do in java?

547


How to provide security in java

1814


What is multiple inheritance? Is it supported by java?

534


Is it possible to use string in the switch case?

563


What do you understand by weak reference?

563


Explain the public class modifier?

511


Difference between process and thread?

619


What are the restrictions that are applied to the java static methods?

535


What is ctrl m character?

522