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
Tell me the latest versions in java related areas?
What is math exp in java?
Can you write a java class that could be used both as an applet as well as an application?
what is deadlock? : Java thread
What is the purpose of void class?
Explain implementation and how is it different from conversion?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What is the function of character?
Which is bigger float or double java?
How arrays are stored in memory in java?
How do you identify if jvm is 32-bit or 64-bit from java program?
Give a brief description of java socket programming?
Does list allow duplicates in java?
When will we use them?
Give few difference between constructor and method?