exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 1 discussion

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

Given:

What is the result?

  • A. 200.0 : 100.0
  • B. 400.0 : 200.0
  • C. 400.0 : 100.0
  • D. Compilation fails.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
hyodaeun
Highly Voted 5 years, 11 months ago
Answer is c
upvoted 14 times
...
joeMP
Most Recent 2 months, 1 week ago
Answer - C
upvoted 1 times
...
nuray
10 months, 2 weeks ago
Selected Answer: A
A. 200.0 : 100.0
upvoted 1 times
...
Dibya17
11 months ago
Answer is C
upvoted 1 times
...
YukiSatoh
1 year, 2 months ago
Selected Answer: C
upvoted 1 times
...
gg7495
1 year, 2 months ago
Selected Answer: C
Answer - (c) as newPrice variable is not getting updated. The instance variable price is getting updated
upvoted 1 times
...
Ondo
1 year, 2 months ago
Réponse C
upvoted 1 times
...
veer684
1 year, 3 months ago
Answer is C
upvoted 1 times
...
DriftKing
1 year, 3 months ago
Selected Answer: C
Tested. Answer is C: 400.0 : 100.0 class Product{ double price; } public class Test { public void updatePrice(Product product, double price){ price = price*2; product.price = product.price + price; } public static void main(String args[]) { Product prt = new Product(); prt.price = 200; double newPrice = 100; Test t = new Test(); t.updatePrice(prt, newPrice); System.out.println(prt.price+ " : "+newPrice); } }
upvoted 3 times
...
Sezam
1 year, 3 months ago
Selected Answer: C
Answer is C
upvoted 1 times
...
dsms
1 year, 4 months ago
Selected Answer: C
Answer is: 400.0 : 100.0
upvoted 1 times
...
Thando_4
1 year, 5 months ago
Answer is C
upvoted 1 times
...
NabilBenAsker
1 year, 5 months ago
Selected Answer: C
Answer is C
upvoted 1 times
...
felipegomeztreufo
1 year, 6 months ago
Answer is C
upvoted 1 times
...
Vicky_65
1 year, 8 months ago
Selected Answer: C
Answer is C
upvoted 1 times
...
masloa
1 year, 8 months ago
Selected Answer: C
Objects are pass by reference, primitives passed by value
upvoted 1 times
...
Def8
2 years, 1 month ago
Selected Answer: C
Objects are pass by reference
upvoted 1 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