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

How do you compare characters in java?

919


What data type is a string?

958


Can inner class extend any class?

1008


What's a method in programming?

990


Why are the objects immutable in java?

936


What is difference in between java class and bean?

1028


What is boolean false?

929


What is the mapping mechanism used by java to identify IDL language?

956


What are the disadvantages of using inner classes?

1058


Explain the difference between throw and throws in java?

946


How many types of the indexof method are there for strings?

920


What are disadvantages of java?

958


How would you dynamically allocate memory to an array?

991


Is empty .java file name a valid source file name?

1059


design an lru cache in java?

936