exam questions

Exam 1z0-829 All Questions

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

Exam 1z0-829 topic 1 question 34 discussion

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

Given:

What is the result?

  • A. B A D
  • B. D A D
  • C. B A C
  • D. D D D
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
Tojose
Highly Voted 1 year ago
the right answer is B. D A D
upvoted 5 times
...
SrinivasJasti
Most Recent 2 weeks, 1 day ago
Selected Answer: B
15.25 and 10.25 are considered double 15.25f and 10.25f will only be considered as float
upvoted 1 times
...
manjulata
6 months, 1 week ago
correct answer is DAD
upvoted 1 times
...
xplorerpj
6 months, 3 weeks ago
Selected Answer: B
B is correct answer
upvoted 1 times
...
james2033
10 months, 4 weeks ago
Selected Answer: B
package q34; public class Test { public void sum(int a, int b) { System.out.print(" A"); } public void sum(int a, float b) { System.out.print(" B"); } public void sum(float a, float b) { System.out.print(" C"); } public void sum(double... a) { System.out.print(" D"); } public static void main(String[] args) { Test t = new Test(); t.sum(10, 15.25); t.sum(10, 24); t.sum(10.25, 10.25); } } // Result: // D A D
upvoted 4 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