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
}
}

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is 0 an irrational number?

609


What is string args [] in java?

540


What are byte codes?

661


Explain the private field modifier?

617


define the terminology association.

621






What is udp in java?

537


What is the use of a conditional inclusion statement in Java ?

594


Write a program in java to create a doubly linked list containing n nodes.

563


What is the difference between java applets and applications?

572


What do you understand by looping in java? Explain the different types of loops.

569


What is immutable in java?

550


What are operators and its types?

581


What is difference between class and object in java?

533


What is == and === in javascript?

563


Which is better singleton or static class?

517