exam questions

Exam 1z0-808 All Questions

View all questions & answers for the 1z0-808 exam

Exam 1z0-808 topic 1 question 219 discussion

Actual exam question from Oracle's 1z0-808
Question #: 219
Topic #: 1
[All 1z0-808 Questions]

Given:

What is the result?

  • A. double sum is 30.0 float sum is 30.0
  • B. float sum is 30.0 double sum is 30.0
  • C. Integer sum is 30 double sum is 30.0
  • D. Integer sum is 30 float sum is 30.0
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
MPignaProTech
2 months, 2 weeks ago
Selected Answer: B
B is correct
upvoted 1 times
...
Sisar
4 months, 2 weeks ago
Selected Answer: B
Correct is B. public class App { public static void doSum(Integer x, Integer y) { System.out.println("Integer sum is " + (x + y)); } public static void doSum(double x, double y) { System.out.println("double sum is " + (x + y)); } public static void doSum(float x, float y) { System.out.println("float sum is " + (x + y)); } public static void main(String[] args) { doSum(10, 20); doSum(10.0, 20.0); } }
upvoted 1 times
...
Geradine
8 months, 2 weeks ago
B-Tested byte -> short -> int -> long -> float -> double
upvoted 1 times
...
hajime123
8 months, 2 weeks ago
Selected Answer: C
Answer is C
upvoted 1 times
...
ManuTov
1 year, 3 months ago
This is the same question as number 172. And it isn't the first time that are repeated. I wonder what I'm paying for.
upvoted 2 times
...
iSnover
2 years, 3 months ago
Selected Answer: B
The answer is the letter B, a method overload occurs printing what is written in that answer.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago