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



they asked class A{} class B{} class c{} all the three class saved as a single file,there is no m..

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

they asked class A{} class B{} class c{} all the three class saved as a single file,there is no m..

Answer / cool_duzz

What is the Question? Please explain...

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

How we can skip finally block of exception even if some exception occurs in the exception block in java?

0 Answers  


What means public static?

0 Answers  


Does string isempty check for null?

0 Answers  


What is thread pool? How can we create thread pool in java?

0 Answers  


What is the super void?

0 Answers  






What is double word?

0 Answers  


What are parsing rules?

0 Answers  


What are the advantages of unicode?

0 Answers  


Define how can we find the actual size of an object on the heap?

0 Answers  


Why should I use abstract class?

0 Answers  


Where pragma is used?

0 Answers  


What super () does in java?

0 Answers  


Categories