I need to use two same named class in the same package.can i do it? like
package MyPackage;
class pkg{
}
class pkg{
}
Is it correct?
I need to use two same named class in the same package.can i do it? like
package MyPackage;
class pkg{
}
class pkg{
}
Is it correct?
You should learn to try these things yourself, or read the language specification.
The short answer is no, you can't do that.