Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

What is a treemap in java?

0 Answers  


What is private protected in java?

0 Answers  


What is an array and a vector? How they different from each other?

4 Answers  


What are blocks?.

1 Answers   TCS,


can abstract class have constructor how can you achive this ?

4 Answers   Fidelity,






What are the different tags provided in jstl?

0 Answers  


Why chararray() is preferred over string to store the password?

0 Answers  


what are the analysis of an object

2 Answers  


How to write custom exception in java?

0 Answers   Cyient,


How much ram can a 64 bit processor theoretically?

0 Answers  


What is difference between jdk,jre and jvm?

0 Answers  


What are different type of access modifiers?

3 Answers  






Categories