I am importing two packages in my code that have aclass with the same name. How can I declare avariable of this class type, and specify I wantjava.x.ClassName rather than java.y.ClassName?
Assuming that I have written my own File class andplaced them in com.vijay.FileTo create a normal file Object the coode whould havebeenjava.io.File normalFile = new java.io.File("some filenane");and to access the custome file class I will code asfollowscom.vijay.File customeFile = new com.vijay.File("somefile name");