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 the use of System class?
State two differences between C and Java.
How we can execute any code even before main method?
What is a substitution variable?
What is the final blank variable?
Write a java program to print fibonacci series?
Is string serializable in java?
What's the difference between int and integer in java?
Explain the use of sublass in a java program?
What do you mean by default constructor in java?
What do you mean by chromounits in java8?
What is the function of static in java?
What is the purpose of the enableevents() method in java programming?
What are some alternatives to inheritance?
Which variable is the independent variable?