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

Is arraylist dynamic in java?

612


What is the purpose of static methods and static variables?

640


What is the file type?

669


What is the need of transient variables in Java ?

681


What is the instance of an object?

718






What is javac in java?

648


What are the four pillars of java?

737


Name some OOPS Concepts in Java?

723


From the two, which would be easier to write: synchronization code for ten threads or two threads?

708


What is the difference between JDBC 1.0 and JDBC 2.0?

2799


Why java strings are immutable in nature?

690


What is the meaning of 3 dots in java?

781


What are green threads in java?

638


Difference between collection, collection and collections in java?

658


what is optional in java 8?

676