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
Can I learn java in 3 months?
Explain the difference between treeset and treemap in java?
How many bits is a string in java?
How do you check if two given string are anagrams?
Describe the process as to how substring() methodology mechanisms in java.
Difference between object instantiation and construction ?
Which package is used for pattern matching with regular expressions?
What is difference between path and classpath variables?
What is the difference between assignment and initialization?
What are the differences between heap and stack memory in java?
What is the difference between iterator and list iterator?
What is user defined exception in Java?
What is unicode datatype?
What is a lock or purpose of locks in java?
Why destructor is not used in java?