Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What happens when main () method is declared as private?

1186


what is encapsulation in java? Explain

1177


What is method in java ?

1143


What is gui programming?

1109


What is size_t?

1035


What are facelets templates?

1082


why not override thread to make a runnable? : Java thread

1059


is it possible to instantiate the math class?

1099


What is constructor chaining and how is it achieved in java?

1238


why we use merge option in hybernate pls give a ex snippet

2030


What is meant by JVM? Is JVM platform independent or not?

1128


what is session in java?

1322


What is :: operator in java?

1028


What do you mean by exception handling in Java?

1366


Explain about version control?

1094