Question 1 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 1 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given:

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);

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.