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 / sriragv
You can not call a method like above unless untill ur
classes are static.
You can create instance and u can use as
Instance.method();
| Is This Answer Correct ? | 17 Yes | 1 No |
Post New Answer View All Answers
What is jpa specification?
Explain reverse a linked list recursive java solution?
Why is java architectural neutral?
What are the topics in core java?
Can long be null in java?
What is the difference between hashset and treeset in java?
What is the purpose of the return statement?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
How does indexof work?
how to write a server program and sending the mails to the server using smtp protocol please help me
What are user defined exceptions?
How to create an immutable class?
How do you stop a thread in java?
why we use merge option in hybernate pls give a ex snippet
Difference between a process and a program?