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 type of questions asked for barclays technologies pune please send urgent
When abstract methods are used?
What is java algorithm?
What is the final keyword in java?
What is meant by call by reference?
How long will it take to learn java?
What is stream api in java8?
What are the types of statement? explain
What is the function of static in java?
Which class is extended by all other classes?
Which graphs are functions?
Write a function to print Fibonacci series and Tribonacci series?