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

import package in the class.That package related methods are now accessible in a class.If u want call a method
classname.method(); or create a new object to a class and then call the method like objectname.method();

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java in layman terms?

1052


Can we change the scope of the overridden method in the subclass?

1459


What are the principle concepts of oops?

1013


Is class forname reflection?

1034


What is functional interface in java example?

1053


What is the difference between a vector & an array list?

1221


Can we use different return types for methods when overridden?

1063


Explain about the dynamic behavior of core java?

1188


What is the use of :: in java?

1078


What are pass by reference and pass by value?

1039


Can a static method be overridden in java?

1059


Is a class subclass of itself?

1131


What is the difference between equals() and?

1260


Which collection does not allow duplicates in java?

1031


How do you invoke a method?

1050