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 / chirag
Is it really so difficult? Use fully qualified names. :D
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What languages are pass by reference?
Which package is used for pattern matching with regular expressions?
a thread is runnable, how does that work? : Java thread
What is sleep method?
Why is multithreading important?
How many bits is a string?
Can we sort list in java?
What is lambda expression in java?
What are the differences between throw and throws?
What is difference between static class and singleton pattern?
What is difference between overloading and overriding in java?
Can a main method be declared final?
What is the epoch date?
describe method overloading
What is the difference between inner class and nested class?