Hello !!!
Since
I am a beginner in Java programming I do not use an
IDE. I am using notepad++ to write my Java codes. But an expert in java will find this question ridiculous.
I created a super class in package x and a subclass was derived from the super class, but that subclass is in a different package (Lets assume it is package y).
Then I built my main/test class in another package (package z). When I compile my main class the compiler says
Error :class,interface or enum expected.
Does what I have done make any sense ?
I know sub classes and super classes do not need to be in the same package. But what about the
test class. Should it be the same package where I created my super class/sub class.