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
How do you detect memory leaks?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
What is the diffrence between inner class and nested class?
Can a class have a static inner class?
What is the final field modifier?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
Why do we use return statement?
Is java ee a framework?
What if constructor is protected in java?
What is the purpose of the finalize() method?
What is an i/o filter?
What is JVM and is it platform independent?
Explain the public class modifier?
How do you make a thread in java?
Write a program to calculate factorial in java?