Basic JAVA question. need answer fast.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kard63
    Confirmed User
    • Nov 2003
    • 8944

    #1

    Basic JAVA question. need answer fast.

    How many versions of constructor calls are supported for JButton?

    Thanks
  • gornyhuy
    Chafed.
    • May 2002
    • 18041

    #2
    forty two

    icq:159548293

    Comment

    • Kard63
      Confirmed User
      • Nov 2003
      • 8944

      #3
      That is not correct.

      Comment

      • Linguist
        Confirmed User
        • Apr 2004
        • 1706

        #4
        Google -> Java API 1.5 -> Jbutton -> 5
        315-310

        Comment

        • Kard63
          Confirmed User
          • Nov 2003
          • 8944

          #5
          i did try googling it. Thanks I really appreciate the answer.

          Comment

          • Linguist
            Confirmed User
            • Apr 2004
            • 1706

            #6
            Originally posted by Kard63
            i did try googling it. Thanks I really appreciate the answer.
            Np, here's the doc:
            http://java.sun.com/j2se/1.5.0/docs/api/index.html

            I always have it handy when doing anything java related, it's quite hard to write java code otherwise
            315-310

            Comment

            • Kard63
              Confirmed User
              • Nov 2003
              • 8944

              #7
              Holy fuckin shit how did you find it in that mess?

              BTW

              In the MAIN definition line of a Java application, what does the word arguments (or args) refer to?
              A. command line parameters that are passed into the application when it is invoked
              B. the fact that early Java programmers were descended from pirates on the high seas (hence arg, arg, arg)
              C. Any method calls nested outside the class definition line
              D. Any packages nested outside the application


              got an idea ?

              Comment

              • Linguist
                Confirmed User
                • Apr 2004
                • 1706

                #8
                Originally posted by Kard63
                Holy fuckin shit how did you find it in that mess?

                BTW

                In the MAIN definition line of a Java application, what does the word arguments (or args) refer to?
                A. command line parameters that are passed into the application when it is invoked
                B. the fact that early Java programmers were descended from pirates on the high seas (hence arg, arg, arg)
                C. Any method calls nested outside the class definition line
                D. Any packages nested outside the application
                got an idea ?
                YYARGGG!!! It's B. the fact that early Java programmers were descended from pirates on the high seas (hence arg, arg, arg)

                But no, it's A. Args is an array that holds arguments for the application, and you can name it anything you want (args, yargs, arguments etc)... you can get app's parameters by calling args[0], args[1], etc
                315-310

                Comment

                • Kard63
                  Confirmed User
                  • Nov 2003
                  • 8944

                  #9
                  Hmm I smell 50 out of 50 on my final lol. Wanna do the only other one I'm unsure about?

                  Assume that a method is going to return a null value to the code that calls it, and will have two parameters of type int. Which of the following best represents how the method should be constructed?
                  A. public void MethodName(int param1, int param2) {...}
                  B. MethodName public void (param1, param2) {...}
                  C. public void MethodName() {int param1, int param2}
                  D. public void MethodName int (param1, param2) {...}
                  E. None of the above is correct


                  I think its C because it doesnt have anything in the () and it said " return a null value" so that seems inline with that. What do you know lol ?

                  Comment

                  • woj
                    <&(©¿©)&>
                    • Jul 2002
                    • 47882

                    #10
                    Do your own homework

                    and what kind of fucked up school do you go to, that you get to take take-home finals?
                    Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
                    Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
                    Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

                    Comment

                    • Kard63
                      Confirmed User
                      • Nov 2003
                      • 8944

                      #11
                      Originally posted by woj
                      Do your own homework

                      and what kind of fucked up school do you go to, that you get to take take-home finals?
                      Teacher got sick. I'm making the most of it.

                      Comment

                      • Linguist
                        Confirmed User
                        • Apr 2004
                        • 1706

                        #12
                        Originally posted by Kard63
                        Hmm I smell 50 out of 50 on my final lol. Wanna do the only other one I'm unsure about?
                        Assume that a method is going to return a null value to the code that calls it, and will have two parameters of type int. Which of the following best represents how the method should be constructed?
                        A. public void MethodName(int param1, int param2) {...}
                        B. MethodName public void (param1, param2) {...}
                        C. public void MethodName() {int param1, int param2}
                        D. public void MethodName int (param1, param2) {...}
                        E. None of the above is correct
                        I think its C because it doesnt have anything in the () and it said " return a null value" so that seems inline with that. What do you know lol ?
                        Either A or E, depending on your teacher's interpretation of what NULL means.

                        Method A won't return anything, but is the most correct way out of 4, none of the other 3 will work.

                        Btw, which uni/college do you go to? We had much harder questions on 1st year introductory course :/
                        315-310

                        Comment

                        • Kard63
                          Confirmed User
                          • Nov 2003
                          • 8944

                          #13
                          Originally posted by Sjelefall
                          Either A or E, depending on your teacher's interpretation of what NULL means.

                          Method A won't return anything, but is the most correct way out of 4, none of the other 3 will work.

                          Btw, which uni/college do you go to? We had much harder questions on 1st year introductory course :/
                          Ball State. It was a 1 semester course and Prof really did miss time due to illness. Was mine a shitload easier? There were 50 questions. I looked the ones I didn't know up (except for the 3 I asked you). I got 48 out of 50. Thanks for the help.

                          Comment

                          • Violetta
                            Affiliate
                            • Jul 2004
                            • 28735

                            #14
                            yark... I had some java on school, but I suck at it! sorry
                            M&A Queen

                            Comment

                            Working...