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

How to add menushortcut to menu item?

1004


Why webdriver is an interface?

1059


Why do we need data structure in java?

1078


When parseint method can be used?

955


What is the major difference between linkedlist and arraylist?

1044


Which api is provided by java for operations on set of objects?

1461


What state is a thread in when it is executing?

963


What is the major drawback of internal iteration over external iteration?

1031


What are the basic control structures?

996


Where is jre installed?

1049


What are some alternatives to inheritance?

1107


What is identifier in java?

1116


Difference between default and protected access specifiers?

1128


How to implement a multithreaded applet?

2676


How can we find the sum of two linked lists using stack in java?

1157