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 / cool_duzz

What is the Question? Please explain...

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When we serialize an object does the serialization mechanism saves its references too?

509


Explain the importance of throws keyword in java?

569


What language is java written?

539


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

573


What is queue in java?

554






Can java list be null?

554


Why we use set in java?

519


How many bits is a char?

538


In how many ways we can do synchronization in java?

529


Explain thread life cycle in java?

589


What is the java project architecture?

1787


what is method reference in java 8?

558


Can we make a constructor final?

548


Why java is called not pure object oriented language?

581


What is java virtual machine and how it is considered in context of java’s platform independent feature?

656