is it always this hard to understand?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dreamer1963
    New Member
    • Mar 2008
    • 6

    is it always this hard to understand?

    Java looks for the _______________ as the usual starting point for all standalone

    applications.
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    #2
    Originally posted by dreamer1963
    Java looks for the _______________ as the usual starting point for all standalone

    applications.
    I guess the execution starts by invoking the method main of the specified class.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by sukatoa
      I guess the execution starts by invoking the method main of the specified class.
      @OP: ok, which one?

      a) void main() { ... }
      b) static void main() { ... }
      c) static int main(String[] args) { ... }
      d) static void main(String[] args) { ... }
      e) static void main(String args) { }
      f) static void main (String[] args, String[] env) { ... }

      kind regards,

      Jos

      Comment

      • sukatoa
        Contributor
        • Nov 2007
        • 539

        #4
        Originally posted by JosAH
        @OP: ok, which one?

        a) void main() { ... }
        b) static void main() { ... }
        c) static int main(String[] args) { ... }
        d) static void main(String[] args) { ... }
        e) static void main(String args) { }
        f) static void main (String[] args, String[] env) { ... }

        kind regards,

        Jos
        In java...

        public static void main(String sukatoa[]){.....}
        for sure....

        I have doubt in choice f, is it possible to use int[] instead of String @ 2nd param? or they could be anything also @ 1st param?

        sukatoa...

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by sukatoa
          In java...

          public static void main(String sukatoa[]){.....}
          for sure....

          I have doubt in choice f, is it possible to use int[] instead of String @ 2nd param? or they could be anything also @ 1st param?

          sukatoa...
          I'm not going to tell you; I addressed the questions to the OP. I noticed that
          everybody eagerly jumped on his questions and dutifully answered them; don't
          do that. The OP won't learn anything from copying and pasting answers.

          kind regards,

          Jos

          Comment

          • sukatoa
            Contributor
            • Nov 2007
            • 539

            #6
            Originally posted by JosAH
            I'm not going to tell you; I addressed the questions to the OP. I noticed that
            everybody eagerly jumped on his questions and dutifully answered them; don't
            do that. The OP won't learn anything from copying and pasting answers.

            kind regards,

            Jos
            Opppsss!!! Sorry... ;-)

            Ok, i will....

            Comment

            Working...