menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
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 th…
Ask a Question
Questions
Unanswered
Tags
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 th…
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 & Tech
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 & Tech
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 & Tech
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.2k
points
Computers & Tech
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.4m
questions
12.2m
answers
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
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.
Seven basic internal components found in a computer tower
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org