Forum : Demonstrating package names collision in java.
Brief description  about Online courses   join in Online courses
View Bhushan Hanumant Shinde 's Profile

Demonstrating package names collision in java.

I got this question as an assignment:

Packages/Naming

We have created lot of packages and defined classes and interfaces in them. We have also discussed the point we have to remember while naming them. In this assignment we will see how important naming is.

Please change the package names in your previous assignment such that two packages have same name and analyze the result/errors that will be thrown.

My Doubt:

I am unable to think of a way(scenario) to demonstrate what has been asked. Since Java imports are absolute, the situation described in question seem impossible to produce (IMO).

Please help me to demonstrate this thing.

Thanks in advance :)
Asked by Bhushan Hanumant Shinde | Oct 9, 2010 |  Reply now
Replies (1)
View arun kumar das 's Profile
Hi Bhushan Hanumant Shinde

change the package names in your previous assignment, means Create two application having same package name and analyze the result/errors that will be thrown.

Java teacher
Nov 8, 2010