What will be the visibility of a default class ?
3 Likes
The default class is visible to all the classes in the same package.
Answered By
1 Like
What will be the visibility of a public class ?
What will be the visibility of a protected class ?
What will be the visibility of a private class ?
How does Java resolve variables having same name? Give code example.