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...

how to call a method in different package?

Answer Posted / taresh nama

You Must import the package with fully Qualified name of
the class contains method.
Now you can call a method as:classname.method();
You can create a new object to that class and then call the
method as objectname.method();

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When arithmeticexception is thrown?

968


How does a for loop work java?

989


Where is stringbuffer stored?

920


What is jvm? Why is java called the platform independent programming language?

950


Why are variables important in research?

909


What is starvation?

1215


What is not object oriented programming?

876


What happens if we override only equals?

928


What is method and methodology?

1054


Can memory leak happen java?

967


How is hashset defined in java?

965


What is an example of character?

1062


Is null false in java?

1139


What is object-oriented programming?

1029


What is singleton service?

911