Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-12-2005, 01:48 PM   #1
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Basic JAVA question. need answer fast.

How many versions of constructor calls are supported for JButton?

Thanks
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 01:49 PM   #2
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
forty two
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 01:51 PM   #3
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
That is not correct.
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 01:56 PM   #4
Linguist
Confirmed User
 
Join Date: Apr 2004
Location: Toronto, ON
Posts: 1,706
Google -> Java API 1.5 -> Jbutton -> 5
Linguist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 01:58 PM   #5
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
i did try googling it. Thanks I really appreciate the answer.
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 02:00 PM   #6
Linguist
Confirmed User
 
Join Date: Apr 2004
Location: Toronto, ON
Posts: 1,706
Quote:
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
Linguist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 02:04 PM   #7
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
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 ?
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 02:08 PM   #8
Linguist
Confirmed User
 
Join Date: Apr 2004
Location: Toronto, ON
Posts: 1,706
Quote:
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
Linguist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 02:12 PM   #9
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
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 ?
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 02:15 PM   #10
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 02:16 PM   #11
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Quote:
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.
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 02:22 PM   #12
Linguist
Confirmed User
 
Join Date: Apr 2004
Location: Toronto, ON
Posts: 1,706
Quote:
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 :/
Linguist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 02:32 PM   #13
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Quote:
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.
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2005, 02:35 PM   #14
Violetta
Affiliate
 
Violetta's Avatar
 
Join Date: Jul 2004
Posts: 28,735
yark... I had some java on school, but I suck at it! sorry
__________________
M&A Queen
Violetta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.