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

Answers were Sorted based on User's Feedback



Which of the following can be referenced by a variable? A. The instance variables of a class ..

Answer / kraja

C. The instance variables and methods of a class.

Is This Answer Correct ?    30 Yes 5 No

Which of the following can be referenced by a variable? A. The instance variables of a class ..

Answer / 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

More Core Java Interview Questions

What is the blank final variable?

3 Answers  


Can we inherit inner class?

0 Answers  


How can you make a class serializable in java?

0 Answers  


How to sort an array from smallest to largest java?

0 Answers  


what is difference between servletconfig and servletcontext?

3 Answers   Amdocs,






Is 0 true or false in java?

0 Answers  


What Is Composition?

0 Answers   IBS,


What are "class access modifiers" in Java?

0 Answers   Genpact,


This is my code i have a doubt class ab implements a,b { public void add() { System.out.println("Hi") } } interface a { public void add(); } interface b { public void add(); } in this code i have two interface implemented in the class has same method.just i want to know which method of interface implemented in the class. interface a or interface b? confused me .

3 Answers  


why not override thread to make a runnable? : Java thread

0 Answers  


How do you check if a string is lexicographically in java?

0 Answers  


What are decalarations?

0 Answers  


Categories