Search:

Type: Posts; User: rohan22

Search: Search took 0.12 seconds.

  1. Re: Why main(String args[]) method needs to be public?

    Awesome..... thanks a lot.....But we are back to the square in giving the answer....."the JLS says so....".Yes i agree not much information
    is available on net on this topic.But will keep the...
  2. Re: Why main(String args[]) method needs to be public?

    Yea i got your point.....As in java if we don't specify with any access specifier its package protected.I totally agree with you.
    Coming back to my piece of code:-
    class Helloworld{
    public static...
  3. Re: Why main(String args[]) method needs to be public?

    If main doesn't work without public then I assume there must be valid reason for it to be public.Something related to its syntax specification.
    Anyways thanks a lot. Like you my search for this is...
  4. Re: Why main(String args[]) method needs to be public?

    Hey please let me know the reason.....it would be great.......! else this question will start eating my until I am convienced....

    Thanks a lot
  5. Why main(String args[]) method needs to be public?

    Considering a simple Helloworld program

    class Helloworld{
    public static void main(String args[]){

    System.out.println("This is Hello World Program");

    ...
Results 1 to 5 of 5