Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
it does not get instantiated, the main method is a static metod and does not need an instance to get invoked, in can be invoked by the class name itself. > When we write a Java Application Program , we don't instantiate a public class. How is that class then instantiated ? Even with changing the main to private , the program compiles and runs successfully. Why does this happen ? Pl. send me the explanation.
Replies: |
Sponsored Links
|