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 formula to calculate percentage?
What are multiple inheritances? Is it supported by java?
Can you make a constructor final in Java?
What is the largest number a double can hold?
What are inbuilt functions in java?
What is a boolean expression in java?
How do you write methodology?
What is super keyword explain with example?
Difference between character constant and string constant in java ?
Is string serializable in java?
What are the important methods of java exception class?
What is the importance of finally block in exception handling?
Is arraylist a class in java?
What is an example of a keyword?
What is the purpose of return statement?