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 jpa specification?

959


Explain reverse a linked list recursive java solution?

977


Why is java architectural neutral?

1102


What are the topics in core java?

1052


Can long be null in java?

1002


What is the difference between hashset and treeset in java?

1053


What is the purpose of the return statement?

1027


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

8094


How does indexof work?

945


how to write a server program and sending the mails to the server using smtp protocol please help me

2054


What are user defined exceptions?

1032


How to create an immutable class?

1096


How do you stop a thread in java?

1049


why we use merge option in hybernate pls give a ex snippet

1986


Difference between a process and a program?

1108