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 languages are pass by reference?

1003


How can you add and remove nodes in jtree?

990


What is valid keyword in java?

951


Under what conditions is an object’s finalize() method invoked by the garbage collector?

994


How does hashmap work in java ?

994


Can we create object of inner class in java?

897


What are the basics of core java?

982


Why string objects are immutable in java?

1002


Is cout buffered?

1122


Which of the following is not an isolation level in the JDBC

2087


Can we clone singleton object?

1021


What is difference between path and classpath in java?

970


Can a function return a function?

1001


What is the meaning of flag day?

978


What are predicates in java 8?

983