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

What is the maximum size of hashmap in java?

529


What are the difference between string, string builder, and string buffer in java?

551


How can we use primitive data types as objects?

553


Can an interface be defined inside a class?

515


why we use merge option in hybernate pls give a ex snippet

1453






What is difference in between java class and bean?

560


What is the final keyword in java?

545


What is the dot operator?

563


What is %02d?

573


How do you calculate square roots?

570


How can you make a class serializable in java?

563


What is the type of lambda expression?

537


What is a superclass?

920


What is functional interface in java example?

527


How to overcome the exception object reference not set to an instance of object?

616