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


Please Help Members By Posting Answers For Below Questions

Tell me the latest versions in java related areas?

587


What is math exp in java?

548


Can you write a java class that could be used both as an applet as well as an application?

520


what is deadlock? : Java thread

529


What is the purpose of void class?

612






Explain implementation and how is it different from conversion?

593


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 ?

522


What is the function of character?

530


Which is bigger float or double java?

528


How arrays are stored in memory in java?

513


How do you identify if jvm is 32-bit or 64-bit from java program?

540


Give a brief description of java socket programming?

532


Does list allow duplicates in java?

524


When will we use them?

601


Give few difference between constructor and method?

524