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 the use of System class?

1093


State two differences between C and Java.

1267


How we can execute any code even before main method?

1074


What is a substitution variable?

972


What is the final blank variable?

1068


Write a java program to print fibonacci series?

908


Is string serializable in java?

959


What's the difference between int and integer in java?

1094


Explain the use of sublass in a java program?

973


What do you mean by default constructor in java?

1013


What do you mean by chromounits in java8?

895


What is the function of static in java?

1008


What is the purpose of the enableevents() method in java programming?

1080


What are some alternatives to inheritance?

1044


Which variable is the independent variable?

925