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
Difference between keyword and identifier.
What is a boolean in java?
What classes of exceptions may be caught by a catch clause in java programming?
What is a dynamic array java?
What is the purpose of a default constructor?
What is dynamic array in java?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
Can you instantiate the math class?
What are static blocks and static initalizers in java ?
Which is easier .net or java?
What is use of a abstract variable?
What is a flag variable?
what is the volatile modifier for? : Java thread
Explain about the select method with an example?
What is identifier in java?