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

What are strings in physics?

1016


When to use runnable interface vs thread class in java?

986


List any five features of java?

1033


Is a char always 1 byte?

992


How do you use spaces in java?

996


What is high level language in computer?

1023


How much is a java license?

931


How do you sort a string in alphabetical order in java?

919


Is string a wrapper class?

1021


Explain yield() method in thread class ?

1069


How do you reverse sort in java?

949


What is the syntax and characteristics of a lambda expression? Explain

1053


Explain about exception propagation?

1038


What is difference between fileinputstream and filereader in java?

1070


Is special character in java?

1101