![]() |
Basic JAVA question. need answer fast.
How many versions of constructor calls are supported for JButton?
Thanks |
forty two
|
That is not correct.
|
Google -> Java API 1.5 -> Jbutton -> 5
|
i did try googling it. Thanks I really appreciate the answer.
|
Quote:
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 |
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 ? |
Quote:
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 |
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 ? |
Do your own homework :1orglaugh
and what kind of fucked up school do you go to, that you get to take take-home finals? |
Quote:
|
Quote:
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 :/ |
Quote:
|
yark... I had some java on school, but I suck at it! sorry
|
All times are GMT -7. The time now is 07:12 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123