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

What is <> used for in java?

1165


Name few "optional" classes introduced with java 8 ?

1183


What is qms certification?

995


What is core java used for?

1198


what are abstract functions?

1081


How do you sort arraylist in descending order?

1073


Why java is a platform independent? Explain

1153


How do you detect memory leaks?

1110


What is java full form?

1094


Write a program to check string is palindrome without using loop?

1087


Is there any case when finally will not be executed?

1000


What happens if a constructor is declared private?

1070


What are the uses of java?

1135


What is type inference in java8?

1100


Can you have two constructors in java?

1044