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
Describe the syntax of multiple inheritance? When do we use such an inheritance?
Can we create object of inner class in java?
Define inheritance with reference to java.
How to call one constructor from the other constructor ?
Explain method overloading?
Give us the name of the list layoutmanagers in java?
What is an interface in java?
Explain what access modifiers can be used for methods?
What is overriding in java?
please send me hr interview questions in it industry
What are the problems faced by java programmers who don't use layout managers?
Is void a data type?
How list contains works in java?
What is the association?
What is the latest version of java?