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
Answer / kraja
C. The instance variables and methods of a class.
Is This Answer Correct ? | 30 Yes | 5 No |
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 |
What is the blank final variable?
Can we inherit inner class?
How can you make a class serializable in java?
How to sort an array from smallest to largest java?
what is difference between servletconfig and servletcontext?
Is 0 true or false in java?
What Is Composition?
What are "class access modifiers" in Java?
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 .
why not override thread to make a runnable? : Java thread
How do you check if a string is lexicographically in java?
What are decalarations?