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
explain local datetime api in java8?
Are arrays primitive data types?
What is 32 bit float?
Can we sort hashset in java?
What is the main purpose of serialization in java?
Is java se open source?
What is java instanceof operator?
Is singleton class thread safe?
What is the exception hierarchy in java?
What is an argument in java?
What is nextline method in java?
How do you compare two objects?
Why is java so important?
Java is Pass by Value or Pass by Reference?
Why are lists ordered in java?