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

What is the difference between and ?

983


What is boolean strategy?

1120


What is the method overriding?

1077


What is return code?

996


What is passed by reference and pass by value ?

1020


What is empty string literal in java?

1044


What are the 5 types of research methods?

1134


What is classname class in java?

1042


Can a top level class be private or protected?

1038


Tell me about your ability to work under pressure

2179


What is blank final variable?

1053


What is json parser in java?

1043


What are the object and class classes used for?

1030


How do you compare objects in java?

928


Why do we create threads in java?

1220