menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Consider a method defined with the header: public static void doStuff(int x) Which of the following method calls is legal? doStuff(0.555);doStuff(9);doStuff(0.1 + 0.2);all of the options are legal except
asked
Oct 24, 2019
38.0k
views
1
vote
Consider a method defined with the header: public static void doStuff(int x) Which of the following method calls is legal?
doStuff(0.555);doStuff(9);doStuff(0.1 + 0.2);all of the options are legal except for one doStuff(0.1, 0.2);
Computers and Technology
middle-school
Kith
asked
by
Kith
7.9k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
5
votes
the second, because it "asks" for an integer and in all the other calls it is given a float/double
Dan Kendall
answered
Oct 29, 2019
by
Dan Kendall
8.0k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jun 3, 2018
88.3k
views
Consider a method defined with the header: public static void doStuff(int x) Which of the following method calls is legal? 1. doStuff(0.1 + 0.2); 2. doStuff(9); 3. all of the options are legal except for
Kiratijuta
asked
Jun 3, 2018
by
Kiratijuta
8.7k
points
Computers and Technology
high-school
1
answer
0
votes
88.3k
views
asked
Feb 4, 2022
29.7k
views
Consider a method defined with the header: public static void doStuff(double a, int b) Which of the following method calls is NOT legal? int x = 9; int y = 36; doStuff (x, y); doStuff (5.5, 7); doStuff
SolvingJ
asked
Feb 4, 2022
by
SolvingJ
8.2k
points
Computers and Technology
college
1
answer
20
votes
29.7k
views
asked
Sep 13, 2020
29.4k
views
Consider the following method: public static void doStuff (int a[], int b) { if (/* Missing Code */) { for (int i = b; i < a.length; i++) { a[i] = a[i] * 2; } } } What could be used to replace / *Missing Code* / so that there is no out of bounds exception? a. b < a.length b. b > 0 b < a.length c. b > 0 && b <= a.length d. b >= 0 || b < a.length e. b >= 0 && b < a.length
Szymond
asked
Sep 13, 2020
by
Szymond
8.4k
points
Computers and Technology
high-school
1
answer
0
votes
29.4k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Explain why binary codes are used to represent characters, numbers and symbols :)
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org