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
How to add menushortcut to menu item?
Why webdriver is an interface?
Why do we need data structure in java?
When parseint method can be used?
What is the major difference between linkedlist and arraylist?
Which api is provided by java for operations on set of objects?
What state is a thread in when it is executing?
What is the major drawback of internal iteration over external iteration?
What are the basic control structures?
Where is jre installed?
What are some alternatives to inheritance?
What is identifier in java?
Difference between default and protected access specifiers?
How to implement a multithreaded applet?
How can we find the sum of two linked lists using stack in java?