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 are constructors in java?

786


What is a java lambda expression?

794


What is the difference between class forname and new?

793


Is empty list java?

728


What is the use of string and stringbuffer?

784


What about main thread in java?

881


Is null in java?

768


What is meant by distributed application? Why are we using that in our application?

772


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

900


What is the diffrence between inner class and nested class?

833


What is return type in java?

848


How do you reverse a string in java without using string buffer?

838


Can string be considered as a keyword?

806


What is the use of static methods?

808


What is return data type?

792