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
What is <> used for in java?
Name few "optional" classes introduced with java 8 ?
What is qms certification?
What is core java used for?
what are abstract functions?
How do you sort arraylist in descending order?
Why java is a platform independent? Explain
How do you detect memory leaks?
What is java full form?
Write a program to check string is palindrome without using loop?
Is there any case when finally will not be executed?
What happens if a constructor is declared private?
What are the uses of java?
What is type inference in java8?
Can you have two constructors in java?