Hi

All these days, I was thinking that the main method has to be made
public.

All books say that main is made public so that it is accessible
globally. But no one calls the main method directly. So does it
matter at all. It is just the entry point for execution.

public class testing{
    private static void main(String[] a){
        System.out.println("Hi");
    }
}

This one works perfectly.....

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to