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 / swwety

it will give compilation error

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the original name of java?

545


What do you understand by synchronization?

599


What is string subsequence method?

635


What are the drawbacks for singleton class?

524


What is string pool in java?

568






Difference between class#getinstance() and new operator ?

652


how to split string in java?

660


Is age a discrete variable?

529


Can we use switch statement with strings?

624


What is java util?

541


What is the generic function?

531


what is deadlock? : Java thread

529


What are the four pillars of java?

614


What are the super most classes for all the streams?

1176


What is a dynamic array in java?

567