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

Package1 and Package2 both have a method name lets say
"methodA" with different implementation. When I import both
the packages in a java class how can I use both the methods?

Answer Posted / sriragv

You can not call a method like above unless untill ur
classes are static.
You can create instance and u can use as

Instance.method();

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I learn java in 3 months?

964


Explain the difference between treeset and treemap in java?

932


How many bits is a string in java?

978


How do you check if two given string are anagrams?

916


Describe the process as to how substring() methodology mechanisms in java.

1060


Difference between object instantiation and construction ?

1015


Which package is used for pattern matching with regular expressions?

1060


What is difference between path and classpath variables?

1045


What is the difference between assignment and initialization?

1007


What are the differences between heap and stack memory in java?

1007


What is the difference between iterator and list iterator?

981


What is user defined exception in Java?

1030


What is unicode datatype?

926


What is a lock or purpose of locks in java?

979


Why destructor is not used in java?

935