can we access the super class method using subclass object?
Answer Posted / naveen kumar t
If A is the super class and B is the subclass
inside subclass :
A a = new B();
a.methodA();
Here the methodA() should not be private.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why is singleton not thread safe?
What does the “static” keyword mean?
Explain the term virtual machine?
What is the biggest integer?
How list contains works in java?
What do you mean by platform independence?
What is a singleton in genetics?
what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread
Write a program to show whether a graph is a tree or not using adjacency matrix.
How do you reverse sort in java?
What is stringjoiner ?
Why are global variables used?
What is the use of arraylist class in java?
Which class is the superclass for all the classes?
Does java initialize arrays to zero?