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 / swwety
it will give compilation error
Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
Which api is provided by java for operations on set of objects?
What is this () in java?
What access modifiers can be used for methods?
Can we write multiple catch blocks under single try block?
What are the topics in core java?
What are the differences between Java 1.0 and Java 2.0?
Can we serialize singleton class?
What is externalizable interface?
What is a instance variable?
Why do we use variables?
What is difference between module and function?
What is the use of hashmap in java?
What is the purpose of a transient variable?
Why string is not a wrapper class?
Can an interface be defined inside a class?