


Mostly in java we use the *public* key word to initialize the top class .it helps us to access the class in any program.In heritance we don't make all class public because we extends the base class into another class ' for example: class abc {}
class xyz extends abc {public static void main(String args[])
{ System.out.println("good morning programmers");
}} here class xyz can be public but class abc never be public
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.