Hi Sandeep,
sorry, can't find the page number in the moment. But if the variable has only default visibility, it cannot be seen outside the package.
What cannot be seen cannot be imported. And thus, variable j has to be marked public.
You didn't asked about protected, but protected also wouldn't do, as then, j would be visible through inheritance only.
Hoping, my use of bold letters is appropriate,
Bu.
---
And don't forget the horse shoe for the exam