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 / venkatachalapathy

import fully Qualified name of the package in which the
method is present
use the method as "classname.methodname"
or
create the object of that package using a fullyqualifed
name of that package and use the method
as "object.methodname

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bits is a string in java?

1075


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

1058


How do you stop a thread in java?

1111


What does \ mean in regex?

1318


What is the list interface?

1128


Why inputstreamreader is used in java?

1054


What are variable names?

1016


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

1009


What are the concepts of 'OOPS'?

1115


Why map is used in java?

1084


What are thread safe functions?

989


What are the new features in java 8?

1069


Can I import same package/class twice?

1008


Can we call the run() method instead of start()?

1085


Why there are some null interface in java? What does it mean?

1185