they asked class A{}
class B{}
class c{}
all the three class saved as a single file,there is no main
method in the file
and anothe class
M.java
class m
{
psvm(String args[])
{
// here the parent class can access
}
}
Answers were Sorted based on User's Feedback
Answer / suresh
Yes. You can call parent classes ( i.e A or B or C) inside
of class M by instantiate and invoke methods. If parent
classes have static methods you can directly access without
instantiating.
| Is This Answer Correct ? | 1 Yes | 0 No |
What is a map? What are the implementations of map?
How many types of keywords are there?
What is the difference between char and char *?
What is a J2EE component? List out all the component?
What is udp in java?
what is the use of custom tags? with example?
What is meant by final class?
Do loops java?
Is hashset sorted in java?
Difference between arraylist and hashset in java?
what is abstract method with example?
What is lambda programming?